AppleScript added to ExpanDrive
April 11thJeff asks me to write up a little blog post about the new AppleScript support in ExpanDrive, and I’m all about it. I figure I’ll write up the documentation on our site, and then cut and paste it over to our blog. It’s a two birds, one stone situation. But first the wiki software was out of date, so I feel like I should upgrade that. I type a bit of documentation, get bored with it, and decide I’ll work on the blog post. When I log into WordPress I find out that it’s out of date too, so I run another upgrade.
Finally, before I start writing I’ve got to do a lap on NetNewsWire. I see that TUAW posted about ExpanDrive again. Nice. Hey, wait a minute… I’ve been scooped! They stole my blog post. Fortunately, they didn’t get everything.
ExpanDrive now has AppleScript support. Using AppleScript you can make, remove, connect, and eject drives.
The connect and eject commands can both act on a drive or list of drives, so that these all work more or less like you probably expect:
connect drive 1
connect (every drive whose server ¬
contains "sftpdrive.com")
eject every drive
You can also connect a drive using connect "myServer", which will connect every drive that has “myServer” as a substring of its url.
If you want to make a new drive, try something like this:
make new drive at end with properties ¬
{server:"brandnew.server.com", ¬
username:"tremendous"}
Anything else you want to see in Applescript? Leave a note in the comments.


