• 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: Keystroke in AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keystroke in AppleScript


  • Subject: Re: Keystroke in AppleScript
  • From: KOENIG Yvan <email@hidden>
  • Date: Sat, 31 Mar 2007 11:00:25 +0200


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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Keystroke in AppleScript
      • From: kai <email@hidden>
References: 
 >Keystroke in AppleScript (From: Pierre-Antoine Mangeret <email@hidden>)

  • Prev by Date: Keystroke in AppleScript
  • Next by Date: Re: Help required with Shell Script please...
  • Previous by thread: Keystroke in AppleScript
  • Next by thread: Re: Keystroke in AppleScript
  • Index(es):
    • Date
    • Thread