Re: UI scripting
Re: UI scripting
- Subject: Re: UI scripting
- From: Yvan KOENIG <email@hidden>
- Date: Thu, 12 Oct 2006 13:25:09 +0200
Le 11 oct. 2006 à 16:58, Ruby Madraswala a écrit :
Hello
point 1 - It seems that the process name is case sensitive.
point 2 - if nothing is selected, the Copy menu item is disabled
which may explain the described result.
I assumes that with the added test you will get rid of the error
message.
activate application "Illustrator"
tell application "System Events" to tell process "Illustrator" to
tell menu bar 1 to tell menu bar item 4 --"Edit"
click -- open Edit menu
tell menu 1 to if enabled of menu item 5 then tell menu item 5 to
click -- choose Copy command
end tell
Yvan KOENIG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >UI scripting (From: "Ruby Madraswala" <email@hidden>) |