Menu Contents?
Menu Contents?
- Subject: Menu Contents?
- From: Chuck Ross <email@hidden>
- Date: Fri, 1 Feb 2002 17:44:41 -0800
I'm trying my first AppleScript Studio application. Part of the
interface is a popup menu with three options. When the user selects an
option, nothing needs to happen, but when they click a button then I
need to know what that menu says?
I know the name of the popup menu and the name of the window it is in,
but I can't seem to get the selected item on the menu.
Here's what I know. If I want to get the contents of the menu when it's
been selected, I can use this:
on choose menu item theObject
if the name of theObject is "replaceMenu" then
set menuItemTitle to title of theObject as string
end if
end choose menu item
What I want is something like this:
on clicked theObject
if the name of theObject is "testButton" then
set menuName to title of menu "replaceMenu" of window
"recoveryWindow"
end if
end on clicked
And while I'm at it, what's the easiest way to test a droplet with
AppleScript Studio? Do I need to actually build the application? I
figured that if I ran it and dragged to it's dock icon that should work,
but it doesn't seem to.
Thanks,
Chuck
--
Charles E. Ross
Database/Application Developer
(661) 943-9169
fax: (253) 663-0082
email@hidden