• 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: AppleScript program to execute files (Sounds)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript program to execute files (Sounds)


  • Subject: Re: AppleScript program to execute files (Sounds)
  • From: "T.J. Mahaffey" <email@hidden>
  • Date: Thu, 16 Aug 2001 11:16:14 -0500

(Warning: This comes from an intermediate scripter who wants to try and help
anyone he can after being helped tremendously by this list himself.
Veterans, please don't flog me if I misstate something here.
:) )

Here's some info on what you'll need to do.

First, you'll need an osax like Dialog Director if you want to trigger more
than 3 sounds from your invoked AppleScript dialog box. Dialog Director or
some other such scripting addition will allow you to bring up a list field
in a dialog box which displays the files contained within your sounds
folder. A plain vanilla AppleScript dialog can only handle 3 buttons, and in
turn, 3 sounds to trigger in your case.

As for the hot key, my best suggestion would be to use OS 9.x's fkey
assignment capability. You could assign said script to an fkey, invoke it
with, say, F12, which will then present you with a dialog box containing a
list of your sounds. The user could select the sound, then hit the "ok"
button to play the sound.

Finally, I doubt the "file --> open" command will be necessary. The Finder
already has an "open sound file mySound" command you can use without trying
to invoke a menu option.

Hope this helps.
And I hope I haven't made myself look like a script dummy. (I just bought
Script Debugger 2.0 dang'it. I love it. If it earns me some street cred',
that's a bonus. *grin*)

T.J. Mahaffey
email@hidden


  • Follow-Ups:
    • Re: AppleScript program to execute files (Sounds)
      • From: Jon Pugh <email@hidden>
  • Prev by Date: RE: Compact Handlers Togo!
  • Next by Date: Re: Rule below in QuarkXPress glitch - (bug?)
  • Previous by thread: Re: CopyFile command using Jon's Commands
  • Next by thread: Re: AppleScript program to execute files (Sounds)
  • Index(es):
    • Date
    • Thread