February 20, 200916 yr 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?
February 20, 200916 yr 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!
February 20, 200916 yr 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, 200916 yr by Guest
February 21, 200916 yr Author 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.
Create an account or sign in to comment