Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 have an application on another mac as mine, the software is still open, there are keyboard shortcuts that allow to perform tasks, I would like to execute shortcuts via the terminal from my mac.

share|improve this question

You can use applescript. For example if it was TextEdit;

Edit a file say command and type in
tell application "TextEdit" activate tell application "System Events" keystroke "f" using {command down} end tell end tell

Then run osascript command.

share|improve this answer
Thanks for your help. Now I have a solution. – user312063 Apr 1 '14 at 17:29
If it solves your question, can you accept the answer then? – kenzie Apr 1 '14 at 19:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.