OS: OS X 10.9.1 Mavericks
Is it possible to execute any global hotkeys from the command line?
For example, if I wanted to copy and paste, is there a command to let me type the exact hotkey and execute it?
Like this (This command is just for an example, doesn't actually exists):
hotkey "ctrl+c" hotkey "ctrl+v"
I know there's already a command to copy and paste "pbpaste" and "pbcopy", I was just using copy and paste as an example.
This would be very useful to execute commands that could be very lengthy on the command line. If you wanted to lock the computer on the command line you'd have to do something like:
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
If there's a command to execute hotkeys all you had to do is: