Activating ExpanDrive from the Command Line

Jon Shea May 7th, 2008

In 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? Play the expan command-line screencast

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:

4 Responses to “Activating ExpanDrive from the Command Line”

  1. Jaisen Says:

    I get this:

    jmathai@[~]: expan connect highmaninto 48:53: syntax error: Expected class name but found identifier. (-2741)

  2. Jon Shea Says:

    Hey Jaisen.

    Does that happen every time?

  3. Roman Says:

    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)

  4. Ernest Says:

    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.

Leave a Reply

Subscribe:

Add to Google
RSS
Try ExpanDrive

If you’ve heard of SSH then you need ExpanDrive.