Filed under: Software, Cool tools
ExpanDrive gets AppleScript support
Version 1.1 of ExpanDrive, the utility we reported on earlier that gives you SSH/SFTP server access that's transparent to the OS, hit the streets today. In addition to features like "Reconnect at Login" and several interface/usability tweaks, it now supports AppleScript.
The AppleScript library is simple, providing identity elements for each drive, and 2 commands: connect and eject. Nothing earth-shattering, but it's even better at workflow integration and automation now. A little code, and...
tell application "ExpanDrive"
repeat with aDrive in drives
connect aDrive
display dialog "Connected: " & server of aDrive
end repeat
end tell
Set it up with ThisService and you've got hotkey mountable/unmountable servers! If you haven't checked it out yet, grab the free demo ($29 to purchase).

![TUAW [Cafepress]](http://www.blogsmithmedia.com/www.tuaw.com/media/tuaw-cafepress-promo.png)


Reader Comments (Page 1 of 1)
francol said 4:15PM on 4-11-2008
I absolutely love this program.
Reply
Shiznit said 5:23PM on 4-11-2008
Has anyone thought about / worked on getting this to somehow integrate with quicksilver? I'd love to be able to just type the server name and have it mount on its own. If it's been worked on, a link would be extremely helpful. Thanks for the article TUAW!
Reply
dbr said 3:21AM on 4-12-2008
Just save an applescript as "myservername.applescript", shove it in Home/Library/Scripts/ and refresh quicksilver (Cmd+R when the bezel is up)
Then you should be able to type ctrl+space,myservername[return] and it'll run the script.
I do a similar thing to launch a few iTerm session I always connect to.
Jon Shea said 6:49PM on 4-11-2008
We're working on the AppleScript documentation right now, which you can find at http://www.magnetk.com/support/expandrive/scripting
Both the 'connect' and 'eject' command in AppleScript support lists of drives, so you can say simply
connect every drive
The connect command also accepts a text argument, so you can say:
connect "server.com"
Reply
Jon said 11:06AM on 4-12-2008
You can use MacFUSE and sshfs to mount ssh as a filesystem, but its free and open source. =)
Reply