• 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 sound"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "play sound"


  • Subject: Re: "play sound"
  • From: JollyRoger <email@hidden>
  • Date: Sun, 17 Mar 2002 09:32:29 -0600

Hi folks,

There's a new version of Play Sound up on the server.

I've changed the error handling to use the standard mechanism to return all
errors. When any error is generated, the script editor will show the
default "The application Play Sound got an error" dialog. To prevent the
dialog from showing, wrap the play sound command in a try block like so:

tell application "Play Sound"
repeat with x from 1 to 17
try
tell application "Play Sound" to play sound x
end try
end repeat
quit
end tell

I hope you will enjoy using Play Sound as much as I enjoyed writing it.
Please let me know if you have any more suggestions / criticisms.

Script on... :)

JR
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: "play sound" (From: Mr Tea <email@hidden>)

  • Prev by Date: Help! Trouble with myself and QuckTime...
  • Next by Date: Automatically dismissing dialog boxes
  • Previous by thread: Re: "play sound"
  • Next by thread: Re: "play sound"
  • Index(es):
    • Date
    • Thread