open programs with applescript
Try this. Notice you use “-e” when you are writing the command. Without “-e” you would give a path to an applescript to run. Also notice the string command must be in quotes. osascript -e “tell application \”iTunes\” to activate” And if you have a multi-line applescript you use “-e” before each line like this… … Read more