• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Menu Contents?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Menu Contents?
      • From: Tim Bumgarner <email@hidden>
  • Prev by Date: Re: Scripting Additions: Embracing the Horror of Unix
  • Next by Date: Re: Scripting Additions: Embracing the Horror of Unix
  • Previous by thread: Re: 'path to cleanup at startup folder'
  • Next by thread: Re: Menu Contents?
  • Index(es):
    • Date
    • Thread