Re: can't make option down into a real
Re: can't make option down into a real
- Subject: Re: can't make option down into a real
- From: Graff <email@hidden>
- Date: Sun, 11 Apr 2004 13:19:19 -0400
I believe what you are looking for is:
---------
tell application "System Preferences"
activate
end tell
tell application "System Events"
tell process "System Preferences"
set frontmost to true
delay 2
keystroke "h" using {option down, command down} -- hide others
display dialog "should stop here"
end tell
end tell
---------
You need to make the modifiers a list and then they will all get used.
Using a slash between them causes AppleScript to try to do division,
something that does not work at all.
- Ken
On Apr 11, 2004, at 11:38 AM, Robert Poland wrote:
When I run the following (or many variations of it) I get an error
"Can't make option down into a real."
tell application "System Events"
tell process "System Preferences"
run
set frontmost to true
delay 2
keystroke "h" using option down / command down -- hide others
display dialog "should stop here"
end tell
end tell
_______________________________________________
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.