UI Scripting : Can't get Enabled property
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.