• 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: Emmanuel <email@hidden>
  • Date: Thu, 25 Nov 2004 23:35:41 +0100

At 5:36 PM -0200 25/11/04, Bernardo Hoehl wrote:
What is the code line for playing a specific sound from system.

Eg.: (I made this up)

Tell application "someApp"

play sound "frog"

end tell

You've got to use an app which plays sounds. QuickTime Player is one, Smile is another. Depending on the app, the syntax may be different, or not:


tell application "QuickTime Player"
set w to open f
play w
[...]
close w
end tell

tell application "Smile"
set w to open f
play w
[...]
close w
end tell

Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Play sound (From: Bernardo Hoehl <email@hidden>)

  • Prev by Date: Play sound
  • Next by Date: setting input focus to a text field (ASS)
  • Previous by thread: Play sound
  • Next by thread: open file on another machine
  • Index(es):
    • Date
    • Thread