• 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: set optionKeyDown to...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set optionKeyDown to...


  • Subject: Re: set optionKeyDown to...
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 10 Sep 2008 17:40:49 -0400

My guess as to the OP's intent was detecting if the key is down,
rather than simulating the pressing of it. And I unfortunately don't
know how to do that in AS.



On 9/10/08, Joe <email@hidden> wrote:
>>At 11:45 AM -0600 9/10/08, Robert Poland wrote:
>>>I use this statement several places;
>>>
>>>	tell application "Extra Suites"
>>>		set optionKeyDown to (ES option down)
>>>		quit
>>	end tell
>
> I don't have Extra Suites so I don't know what that command does.
>
> Just guessing:
> I found a script supplied by Apple in my machine's   /Library/Scripts/UI
> Element Scripts/Key Down-Up.applescript
>
> It has statements like this in it:
>
> key down option
>   keystroke "e"
>   delay 1
>   key up option
>   keystroke "e"
>   keystroke return
>
>   keystroke "e" using option down
>   delay 1
>   keystroke "e"
>   keystroke return
>
>   key down shift
>   keystroke "p"
>   key up shift
>   keystroke return
>
>   key down option
>   keystroke "p"
>   key up option
>   keystroke return
>
>   key down {shift, option}
>   keystroke "p"
>   key up {shift, option}
>   keystroke return
>
>   keystroke "p" using {shift down, option down}
>   keystroke return
>
> HTH
> Joe
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>

--
Sent from Gmail for mobile | mobile.google.com

Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >set optionKeyDown to... (From: Robert Poland <email@hidden>)
 >Re: set optionKeyDown to... (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: set optionKeyDown to...
  • Next by Date: If Statements
  • Previous by thread: Re: set optionKeyDown to...
  • Next by thread: Re: set optionKeyDown to...
  • Index(es):
    • Date
    • Thread