Re: Play sounds via script
Re: Play sounds via script
- Subject: Re: Play sounds via script
- From: Luther Fuller <email@hidden>
- Date: Sun, 03 Mar 2013 10:26:24 -0600
On Mar 3, 2013, at 9:54 AM, Luther Fuller wrote: set soundpid to do shell script "afplay " & soundPath & " &> /dev/null & echo $!" -- start the music
I haven't looked at the script using this in years, so I tried using afplay in a short 1 line script from the editor. You DO need to get the pid of the afplay process so you can kill the music whenever necessary. (and it will sometime be necessary!)
Another solution: Once upon a time, I wrote an application called "QT1P" which plays then closes sound files opened with QuickTime Player. It can be downloaded here: I just tried it in Lion and it still works. Don't yet know if works in Mt Lion.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden