lukana Posted February 20, 2009 Posted February 20, 2009 I would like to add a sound file to a button to give the user better feedback that the button has been clicked. I can't find a script command to do this though. Any ideas how it might be done?
PamRotella Posted February 20, 2009 Posted February 20, 2009 I always just use the "Beep" script step (usually for when a dialog box pops up, not for just clicking a button, but it can be used for anything in a script). I suppose you could also try launching an audio file from the "Send Event" script step, but it'll probably open the program that plays the sound, even with system files. Or maybe someone will have a better suggestion!
Fenton Posted February 20, 2009 Posted February 20, 2009 (edited) I can think of a couple ways. The first and easiest is to embed a sound file in a FileMaker container field. Script steps: Go To Field [ sound in container; select/perform ] Commit Record Will play the sound. But the field must be on the layout, though it can be made 1x1 pixel, and non-enterable. Another method, more involved, is to download this small Unix command line app: http://www.hieper.nl/html/play.html Once placed properly, it can be called by AppleScript, via do shell script, to play any external sound file whose format is supported by the system. Kind of overkill for a "click" though. Edited February 20, 2009 by Guest
lukana Posted February 21, 2009 Author Posted February 21, 2009 Hey, thanks for that, it worked a treat and you don't even need the Commit step, just GoToField and perform the Quicktime file. I downloaded one from Flash and it really makes a difference to hear a proper click when you press the button.
Recommended Posts
This topic is 5753 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now