10.5: Create executable command-line AppleScripts
Link: 10.5: Create executable command-line AppleScripts
It looks like AppleScript 2 in Leopard now supports # as a comment character, so it’s possible to have a unix world-executable AppleScript, eg:
#!/usr/bin/osascript`
tell app “iTunes” to pause
Save that as pauseitunes.sh
and…
Read other posts