• 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
UI Scripting : Can't get Enabled property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UI Scripting : Can't get Enabled property


  • Subject: UI Scripting : Can't get Enabled property
  • From: Jess Bowers <email@hidden>
  • Date: Thu, 06 Feb 2003 14:06:14 -0800

I am having trouble getting the enabled property of a menu item:

tell application "System Events"

get enabled of (get properties of menu item "Open" of menu "File"
of menu bar 1 of application process "Finder")

end tell

I get the following error:

Can't get enabled of {value:missing value, minimum:missing value,
maximum:missing value, title:\"Open\", subrole:missing value,
description:\"menu item\", size:{115, 19}, focused:missing value,
selected:missing value, enabled:true, name:\"Open\", role:\"AXMenuItem\",
orientation:missing value, help:missing value, class:menu item, position:{0,
38}}


Clearly, "enabled" is one of the properties in the list. I can get all of
the other properties, but not this one. Is there a reason for this? Is
this a bug?

thanks
Jess
_______________________________________________
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.

  • Prev by Date: Re: QuarkXpress save spread as EPS ?
  • Next by Date: Choose File ... controlling the folder shown?
  • Previous by thread: Re: Dialog box with secure text entry?
  • Next by thread: Choose File ... controlling the folder shown?
  • Index(es):
    • Date
    • Thread