getting the sound of a button
getting the sound of a button
- Subject: getting the sound of a button
- From: Richard Covert <email@hidden>
- Date: Sun, 23 May 2004 16:50:52 -0500
I am still learning to develope with AS Studio and AS. I have s mall
project which defines 5 checkboxes. I have assigned a sound to each
button (checkbox button).
I want to get the sound of a button in my code. so why can't I do this?
set mySound to the name of the sound of the button "button1"
play the sound of the button "button1"
the AS Studio Terminilogy REference manual says on p.118
You typically load a sound as a sound object, and play it with the play
command. The application object can contain sound elements, while the
button and button cell classes have sound properties.
so if I have a checkbox type button named "button 1" and I connect a
sound named "Bottle" to it in the IB
then how do I get that sound in my script?
The reason I ned the sound is that I have several checkboxes that I
allow the user to ck off one at a time. But I have an auto mode where I
go through each step in sequence. I want to be able to play the sound
in the auto mode the same as if the user checked the box one at a time.
So I would like to be ablle to get the name of a sound that I connected
to to a button in the IB.
AS Studio says that you can load a sound and play a sound if the you
the path to the sound file.
any ideas??
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.