Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Keystroke in AppleScript



Hi everyone,
i've looked everywhere, but I cannot find it... How can I script a 'double' keystroke?
I explain: I want to script two things, Spotlight research, and FrontRow, both of them use two keys to be activated.
For FrontRow, it is Command+Escape, and for Spotlight, it is Command+Space
If I script like this:
tell application "System Events"
keystroke command and escape key
keystroke escape key
end tell

I doesn't work.
If I remove the 'and escpape key' the script runs, but nothing appends.
So, do you know how to make a 'dual keystroke' with AppleScript, and by this way, resolve my problem?
Thanks,

Pierre-Antoine


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

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.