• 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: Robert Poland <email@hidden>
  • Date: Thu, 11 Sep 2008 21:20:12 -0600

Ed ,

On Sep 11, 2008, at 7:21 PM, Stockly, Ed wrote:


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.

I use the "do something" several places in several Apps.

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

I am using an Intel machine with, as I said, OS 10.5.4.

keys pressed from Jon's commands works.

I used Jon's commands till It was no longer supported.

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

Bob Poland - Fort Collins, CO



_______________________________________________
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: 
 >Re: set optionKeyDown to... (From: "Stockly, Ed" <email@hidden>)

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