Mailing Lists: Apple Mailing Lists

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

Re: Keystroke in AppleScript




Le 31 mars 07 à 10:32:34, Pierre-Antoine Mangeret a écrit :

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


Hello


Spotlight, it is Command+Space

keystroke " " using {command down}

For FrontRow, it is Command+Escape,

I don't know if this instruction would work

keystroke Escape using  {command down}

and I have no time to test it ;-(

Yvan KOENIG
 _______________________________________________
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

References: 
 >Keystroke in AppleScript (From: Pierre-Antoine Mangeret <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.