2 part question:
I\'m simply trying to run programs using applescript from the terminal, so I tried:
$ osascript tell application \"iTunes\" to activate
I'am new to script too.
I am confused to so I scan an essay named AppleScript Language Guide
and when I go through script commands items, I learn that if you want to activate an application in mac os
with applescript editor
you should type beneath code in your editor and then compile and run them! may this answer will help you, here's code:
// applescript editor code
----------
activate application "iTunes" line 1
----------
tell application "iTunes" to activate line 2