• 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
Re: UI scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: my 1st applescript - how to get value from record?
  • Next by Date: Re: App and droplet
  • Previous by thread: Re: UI scripting
  • Next by thread: RE: UI scripting
  • Index(es):
    • Date
    • Thread