• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Play sounds via script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Play sounds via script (From: Robert Poland <email@hidden>)
 >Re: Play sounds via script (From: Christopher Stone <email@hidden>)
 >Re: Play sounds via script (From: Robert Poland <email@hidden>)
 >Re: Play sounds via script (From: Christopher Stone <email@hidden>)
 >Re: Play sounds via script (From: Robert Poland <email@hidden>)
 >Re: Play sounds via script (From: Christopher Stone <email@hidden>)
 >Re: Play sounds via script (From: Robert Poland <email@hidden>)
 >Re: Play sounds via script (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: UIerror
  • Next by Date: Location of InDesign Library window while script is running
  • Previous by thread: Re: Play sounds via script
  • Next by thread: Solver: Play sounds via script
  • Index(es):
    • Date
    • Thread