The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > OS X (Apple)
.
google unix.com



OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Open Cirrus Cloud Computing Testbed: Federated Data Centers for Open Source Systems a iBot UNIX and Linux RSS News 0 06-08-2009 11:30 PM
Caldera GPLing in 2001, Gave "Open Access" to Open UNIX 8 Source Code iBot UNIX and Linux RSS News 0 03-12-2009 06:30 PM
Open Sources, Open Notebook: Why Oracle Should Worry - InformationWeek iBot UNIX and Linux RSS News 0 07-20-2007 07:30 PM
Open Source Is Dead, Long Live Open Patents? - InformationWeek iBot UNIX and Linux RSS News 0 07-13-2007 02:00 PM
Performing an open/read, open/write prosserj Shell Programming and Scripting 1 06-03-2002 02:03 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 4 Weeks Ago
unimachead unimachead is offline
Registered User
  
 

Join Date: Mar 2008
Location: U.S.
Posts: 24
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 /


  #2 (permalink)  
Old 4 Weeks Ago
xbin xbin is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 5
The open command comes from NextStep. Use AppleScript to manipulate GUI applications.
Code:
osascript -e 'tell application "Finder" to close window 1'
or
Code:
osascript -e 'tell application "Finder" to close every window'
Use diskutil to dismount a share.
  #3 (permalink)  
Old 4 Weeks Ago
unimachead unimachead is offline
Registered User
  
 

Join Date: Mar 2008
Location: U.S.
Posts: 24
Quote:
Originally Posted by xbin View Post
The open command comes from NextStep. Use AppleScript to manipulate GUI applications.
Code:
osascript -e 'tell application "Finder" to close window 1'
or
Code:
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!
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0