Re: AppleScript Studio more than one button
Re: AppleScript Studio more than one button
- Subject: Re: AppleScript Studio more than one button
- From: John Coelho <email@hidden>
- Date: Fri, 19 Apr 2002 12:35:19 -0700
On Friday, April 19, 2002, at 11:57 AM, Christopher Coulon wrote:
I am attempting to learn to develop simple applications with AppleScript
Studio. I can get one button to work, but what is required to use more
than
one button? I tried to guess, but Project Builder will not allow more
than
one 3on clicked2 loop in the script. Is there any place I can look for
examples of scripts with more than one button in a window? I realize
this
is fairly new and there probably is not much out there in the way of
assistance. Thanks in advance.
Chris
Hi Chris,
For your info. the more appropriate users list for Studio questions is:
email@hidden
There are a few Studio examples shipped with the product that deal with
multiple buttons for example look at the "Drag Race"'s "on clicked"
handler and you will see something like:
on clicked theObject
if title of theObject = "Car 1" then
--do something
else if title of theObject = "Car 2" then
--do something
end if
end clicked
You can use the button title or the button AppleScript name.
jc
***************************************
The GAIA Group
Global Automated Image Analysis
We welcome image analysis problems in all fields.
www.theGAIAgroup.org
Christopher Coulon, Ph.D., Founder
email@hidden
***************************************
_______________________________________________
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.
_______________________________________________
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.