Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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 at 17:29
    
If it solves your question, can you accept the answer then? –  kenzie Apr 1 at 19:48

Your Answer

 
discard

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.