Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Adding an audio file to a button


This topic is 5753 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

Posted

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!

Posted (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 by Guest
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.