Let me clarify... Is it possible to run a keyboard shortcut, not by actually pressing the keys, but by entering a certain command into terminal (which would complete the task that the keyboard shortcut would have completed)?
For example... Let's say I wanted to be able to shut down my computer via a terminal command. Given that ^⌥⌘ + eject will shut down the computer, would it be possible to somehow enter this command into terminal however, not with the keyboard shortcut, but by typing something (My question is what is this something?)?
Let me know if you are still having trouble understanding my question. Thanks.
For example... Let's say I wanted to be able to shut down my computer via a terminal command. Given that ^⌥⌘ + eject will shut down the computer, would it be possible to somehow enter this command into terminal however, not with the keyboard shortcut, but by typing something (My question is what is this something?)?
In general, you should be looking for ways to achieve the same result as hitting a particular keyboard shortcut, not to actually make the computer think you hit that shortcut. You'll be more likely to find the correct solution (like with the shutdown command from a couple posts ago).