Re: Play sounds via script
Re: Play sounds via script
- Subject: Re: Play sounds via script
- From: Luther Fuller <email@hidden>
- Date: Tue, 05 Mar 2013 08:35:33 -0600
On Mar 4, 2013, at 10:03 PM, Robert Poland wrote:
You seem to want a sound file to play to completion, so your use of ...
> set cmd to "afplay -v " & scaleValue & " " & mantelSound
> do shell script cmd
is correct. You should NOT use ...
> set soundpid to do shell script "afplay " & soundPath & " &> /dev/null & echo $!" -- start the music
This was extracted from one of my scripts where I DID want to get the soundpid so I could use 'kill soundpid' to end the sound when appropriate. You don't need this.
_______________________________________________
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