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 macvisionaries@googlegroups.com wrote: Weird. It works on my MacBook. I did afplay ~/Desktop/Peace.mp3

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,

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

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 macvisionaries@googlegroups.com 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

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

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