Re: set optionKeyDown to...
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