• 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: "Stockly, Ed" <email@hidden>
  • Date: Thu, 11 Sep 2008 18:21:48 -0700
  • Thread-topic: set optionKeyDown to...

>> What exactly are you trying to accomplish? Not just having the
>> option key down, but for what purpose and what app?
>>
> tell application "Extra Suites"
> set optionKeyDown to (ES option down)
> quit
> end tell
>
> The line in my script "set optionKeyDown to (ES option down)" sets
> variable optionKeyDown to boolean state of the option key.
>
> if optionKeyDown then
> -- do something
> end if


Well, I was trying to figure out what the "do something" was.

If you're not running on an Intel processor see if

keys pressed from Jon's commands works.

if "option" is in keys pressed then
    do something
end if


keys pressed (verb)
 Get the keys that are currently pressed. (from the Jon¹s Commands 3.0d3
suite, defined in Jon¹s Commands.osax)

function syntax
 set theResult to keys pressed
 result: list of string
    A list of key names.

HTH,

ES

 _______________________________________________
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

  • Follow-Ups:
    • Re: set optionKeyDown to...
      • From: Robert Poland <email@hidden>
  • Prev by Date: Re: set optionKeyDown to...
  • Next by Date: Re: If Statements
  • Previous by thread: Re: set optionKeyDown to...
  • Next by thread: Re: set optionKeyDown to...
  • Index(es):
    • Date
    • Thread