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 chmod +x it. Much better than the old 'here doc' method.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20071030231819124