• 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: Playing Sounds in AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

On Oct 30, 2015, at 6:29 AM, email@hidden wrote:

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

References: 
 >Playing Sounds in AppleScript (From: email@hidden)

  • Prev by Date: Re: Playing Sounds in AppleScript
  • Next by Date: Re: Playing Sounds in AppleScript
  • Previous by thread: Re: Playing Sounds in AppleScript
  • Next by thread: Re: AppleScript-Users Digest, Vol 12, Issue 525
  • Index(es):
    • Date
    • Thread