Activating ExpanDrive from the Command Line
May 7th, 2008In version 1.15 we’ve included a little script called expan that lets you connect and eject drives right from the command line. Because nobody wants to have to hike all the way over to the gui when they’re already cranking on their keyboard in the Terminal. Am I right, or am I right?

You can install expan with just a button press (and a password entry) from the ExpanDrive preferences window. It works exactly like you’re probably all ready guessing
expan connect driveName
expan eject driveName
The script will connect and eject every drive that has driveName in its URL or as part of its Drive Name. If you want to connect all your drives, then something like expan connect . will probably do the trick.
Finally, because even desktop apps can be Web 2.0, we’ve made a screencast so you can see expan in action.
Tags: awesome



June 4th, 2008 at 9:43 pm
I get this:
jmathai@[~]: expan connect highmaninto 48:53: syntax error: Expected class name but found identifier. (-2741)
June 5th, 2008 at 6:25 pm
Hey Jaisen.
Does that happen every time?
October 9th, 2009 at 10:04 pm
Just a heads up:
$ expan connect foo_bar 2009-10-10 14:00:13.021 osascript[55749:903] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find: /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper osascript: OpenScripting.framework – scripting addition “/Library/ScriptingAdditions/Adobe Unit Types.osax” declares no loadable handlers. 2009-10-10 14:00:13.025 osascript[55749:903] Error loading /Library/ScriptingAdditions/LCC Scroll Enhancer Loader.osax/Contents/MacOS/LCC Scroll Enhancer Loader: dlopen(/Library/ScriptingAdditions/LCC Scroll Enhancer Loader.osax/Contents/MacOS/LCC Scroll Enhancer Loader, 262): no suitable image found. Did find: /Library/ScriptingAdditions/LCC Scroll Enhancer Loader.osax/Contents/MacOS/LCC Scroll Enhancer Loader: no matching architecture in universal wrapper osascript: OpenScripting.framework – scripting addition “/Library/ScriptingAdditions/LCC Scroll Enhancer Loader.osax” declares no loadable handlers.
It connects, but dumps the above.
This is in Snow Leopard running 2.1.0b0 (4be81d0)
January 10th, 2010 at 1:55 am
I too am seeing this…
nanobot:~ ernest$ expan connect funkytown
2010-01-09 22:53:40.520 osascript[1983:903] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find: /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper osascript: OpenScripting.framework – scripting addition “/Library/ScriptingAdditions/Adobe Unit Types.osax” declares no loadable handlers.