Re: Playing Sounds in AppleScript
Re: Playing Sounds in AppleScript
- Subject: Re: Playing Sounds in AppleScript
- From: Luther Fuller <email@hidden>
- Date: Fri, 30 Oct 2015 08:21:43 -0500
- X_v_e_cd: f339d4659e7d97643b3357460210e13f
- X_v_r_cd: c6b0b1eae890dcfd306bdf9ddfa07c4f
I wanted to see if there was a possibility of playing sounds in my scripts? The sounds are .mp3 files.
I use this to play sound files ...
set soundPath to (quoted form of (POSIX path of soundAlias)) set soundpid to do shell script "afplay " & soundPath & " &> /dev/null & echo $!" -- start the music
I use this to loop the music until another process is finished. This has been working for many years without any problems. My current system is 10.7.5.
|
_______________________________________________
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