Re: System Events 1.2 and Error messages
Re: System Events 1.2 and Error messages
- Subject: Re: System Events 1.2 and Error messages
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 26 Dec 2002 09:42:51 -0800
On 12/26/02 9:29 AM, "Barbara Mueller" <email@hidden> wrote:
>
The following part of a script works fine, but if the menu item
>
"Select All" is not enabled, I don't get an error message. Is it
>
possible to get an error message somehow if a menu items is disabled?
There's an 'enabled' property of menu item. Does it not work correctly?
tell menu bar 1
if enabled of menu item "Select All" of menu "Edit" then
click menu item "Select All" of menu "Edit"
say "I have selected everything"
else
say "The menu item is disabled"
end if
end tell
--
Paul Berkowitz
_______________________________________________
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.