Re: Apple Script: Shut down the Mac

2015-04-01 Thread 'Chris Blouch' via MacVisionaries
So, what kind of file are you trying to play? CB On 3/31/15 4:54 PM, Chris Moore wrote: Yes, it works on mp3 files. Chris On Mar 31, 2015, at 11:56 AM, 'Chris Blouch' via MacVisionaries wrote: Weird. It works on my MacBook. I did afplay ~/Desktop/Peace.mp3 and it started playing. Tried th

Re: Apple Script: Shut down the Mac

2015-03-31 Thread Tim Kilburn
Hi, Haven’t played with it much but here’s two sites that should help. https://www.dssw.co.uk/blog/2010-09-09-how-to-shut-down-your-mac-using-applescript/ for the Shutdown command that actually is reasonably easy to find in the Finder Scripting Dictionary. You need to be careful though as the

Re: Apple Script: Shut down the Mac

2015-03-31 Thread Chris Moore
Yes, it works on mp3 files. Chris > On Mar 31, 2015, at 11:56 AM, 'Chris Blouch' via MacVisionaries > wrote: > > Weird. It works on my MacBook. I did > > afplay ~/Desktop/Peace.mp3 > > and it started playing. Tried the same thing on my ancient MacPro desktop and > it also worked. Both boxes a

Re: Apple Script: Shut down the Mac

2015-03-31 Thread 'Chris Blouch' via MacVisionaries
Weird. It works on my MacBook. I did afplay ~/Desktop/Peace.mp3 and it started playing. Tried the same thing on my ancient MacPro desktop and it also worked. Both boxes are on OSX 10.10.2. Are you sure the audio file was correct? Did it give any messages? Normally there should be no text outp

Re: Apple Script: Shut down the Mac

2015-03-31 Thread Chris Moore
Chris, afplay doesn’t produce any sound on my mac min running yosemite. Too bad because is seems like a handy utility. Chris -- You received this message because you are subscribed to the Google Groups "MacVisionaries" group. To unsubscribe from this group and stop receiving emails from it, s

Re: Apple Script: Shut down the Mac

2015-03-30 Thread 'Chris Blouch' via MacVisionaries
If you can figure out how to get AppleScript to execute shell commands like terminal does you could do afplay /System/Library/Sounds/Frog.aiff to play one of the system sounds, or specify the path to any sound file you want. afplay uses CoreAudio so it should be able to play most common file

Apple Script: Shut down the Mac

2015-03-30 Thread Jürgen Fleger
Hi, could anyone support me in creating an apple script? It is supposed to shut down the Mac but playing a little sound before. So the stepps could be 1. Play sound x in folder y. 2. Wait as long as it takes to play the sound, maybe 3 seconds. 3. Press CMD + Option + CTRL + Eject. That’s the hotk