AppleScript from the command line

Here’s a Leopard feature I had overlooked until now. Shell scripts can now be written in AppleScript. Simply put the following line at the start of your script and save it as plain text:


#!/usr/bin/osascript

Previously, the AppleScript interpreter would choke on that line, so you had to do some ugly workarounds for it.

I haven’t had a chance to post too much for the last few days since I’ve been pretty busy with work. I just found out I’ll be going to Vancouver at the end of this month. I’ll try to post more about it later, and some more Leopard notes.

Leave a Comment