• 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: Wed, 11 Oct 2006 21:15:13 +0200


Le 11 oct. 2006 à 16:58, Ruby Madraswala a écrit :

Hi

Any reason why this works

activate application "TextEdit"
tell application "System Events"
    tell process "TextEdit"
        tell menu bar 1
            tell menu bar item "Edit"
                click -- open Edit menu
                tell menu "Edit"
                    tell menu item "Copy"
                        click -- choose Copy command
                    end tell
                end tell
            end tell
        end tell
    end tell
end tell


And this does not. I get error message NSReceiverEvaluationScriptError:
4.
activate application "Illustrator 10.0.3"
tell application "System Events"
tell process "Illustrator"
tell menu bar 1
tell menu bar item "Edit"
click -- open Edit menu
tell menu "Edit"
tell menu item "Copy"
click -- choose Copy command
end tell
end tell
end tell
end tell
end tell
end tell


Hello

I am unable to test with Illustrator but I tried with GraphicConverter and got two odd behaviours:

- 1- same error message than the described one
- 2 - it didn't accept numbers.

I discovered the problem.

The process name IS case sensitive.

Try with "Illustrator".

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: App and droplet
  • Next by Date: Re: scripting BOMArchiveHelper possible ?
  • Previous by thread: Re: UI scripting
  • Next by thread: Re: UI scripting
  • Index(es):
    • Date
    • Thread