Main image
4th October
2011
written by admin
Thunderbold

Thunderbolt

Last Week finally my long awaited Thunderbolt monitor has arrived. It is breeze to setup like any other Apple product. I use the USB ports that the monitor has in the back and hooked up my back up drive, headset one thing i did not like is there is no “safe undock”. My backup drive is a 2 TB that i have set up for Time machine and every time i undock the Mac complaints about unsafe ejecting of the drive. If you know me i hate when people yank devices out without gracefully ejecting the device. So needless to say the “unsafe ejecting” message was bothering upon searching for a solution i found this little apple script that does the job really well (thanks to Shawn at Chompingatbits.com). This is a simple script that basically sends message to the machine to eject all attached drive now my system is ready to undock. I save the script as a little “Undock.app” and launch it every time i am ready to undock. Here is the process:

  1. Open “AppleScript Editor.app” found in the Applications -> Utilities folder
  2. Paste the following code into “Untitled” applescript window:
  3. tell the application "Finder"
    	eject (every disk whose ejectable is true)
    end tell
  4. Go to File -> Save. Name the file “Undock” and choose “Application” as the file format. You can now run this from Spotlight or create a shortcut in your dock if you prefer; just as with any other application. Your external drives will be ejected after running this script.

 

Tags:

Leave a Reply