• 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: GUI Scripting / Keystroke
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: GUI Scripting / Keystroke (From: Rob Jorgensen <email@hidden>)

  • Prev by Date: Re: applescript-users digest, Vol 3 #1747 - 17 msgs
  • Next by Date: Re: Delete FTP file (What about uploading?)
  • Previous by thread: Re: GUI Scripting / Keystroke
  • Next by thread: Re: GUI Scripting / Keystroke
  • Index(es):
    • Date
    • Thread