Is there a way to write a bash script that opens a program and then executes a menu shortcut of the program?
For example,
open XCode project -> Command + R to run
open Chrome -> Command + N for new window
I thought it might look something like:
$ open MyProject.xcodeproj | exec ⌘ r