Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use Automator to change to Qwerty before it opens StarCraft2.

Any suggestions?

share|improve this question
See also… – user31752 Sep 16 '10 at 2:12
up vote 4 down vote accepted

Have you tried using the default keyboard command to change your input method between Qwerty and Dvorak? By default it's Command-Space.

share|improve this answer
Naw, I want to use Automator to do it, cause I want to switch to qwerty and open StarCraft all in one shortcut key... I would vote down this answer if I had my stackOverflow reputation. – NullVoxPopuli Aug 8 '10 at 21:50
@DerNalia wow that's pretty harsh, especially since it's trivial to use Automator to automatically hit the command-space shortcut. – ghoppe Aug 9 '10 at 17:49
fair enough. didn't know I could do that. thanks for the idea. – NullVoxPopuli Aug 9 '10 at 22:18
I think a downvote for an answer which merely misunderstands your intentions would be uncalled for... – Shinrai Aug 9 '10 at 22:25
yeah, I upvoted =) – NullVoxPopuli Aug 10 '10 at 2:09

Applescript to hit the default shortcut to switch keyboard layouts. (See the Keyboard Shortcuts tab of your Keyboard preference pane to ensure it's enabled and modify shortcut as necessary.)

tell application "System Events"
   keystroke " " using {command down}
end tell

Add the run AppleScript to your automator, and then the Launch Application.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .