Re: GUI Scripting / Keystroke
Re: GUI Scripting / Keystroke
- Subject: Re: GUI Scripting / Keystroke
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 12 Jun 2003 20:50:15 -0700
On 6/12/03 8:13 PM, "Rob Jorgensen" <email@hidden> wrote:
>
> Remove the second 'with':
>
>
>
> tell application "System Events"
>
>
>
> tell process "Acrobat 6.0 Professional.app"
>
> keystroke "o" with command and shift down
>
> end tell
>
>
>
> end tell
>
>
While this compiles just fine, I get this error at run time:
>
>
Can't make <<constant eMkyeCmd>> into a boolean.
Sorry, yes. and there's also a runtime error with what I _meant_ to say too:
keystroke "o" with command down and shift down
--> can't make command down into a boolean
But the upper-case "O" works, as you reminded me.
Just make sure you
tell application "Acrobat 6.0 Professional.app" to activate
before you tell System Events anything.
--
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.