If you can open it...

...you should be able to close it.

How (in Terminal), can you close a directory or (close) dismount a share? I'm wrecking my unimachead! This is so simple, I've forgotten.

Opening a directory:

$Open /

:confused:

The open command comes from NextStep. Use AppleScript to manipulate GUI applications.

osascript -e 'tell application "Finder" to close window 1'

or

osascript -e 'tell application "Finder" to close every window' 

Use diskutil to dismount a share.

Very sweet. Thanks Xbin, works beautifully... my weekend is complete! :slight_smile: