Skip to content

Instantly share code, notes, and snippets.

@timvisher
Created January 13, 2011 23:21
Show Gist options
  • Save timvisher/778825 to your computer and use it in GitHub Desktop.
Save timvisher/778825 to your computer and use it in GitHub Desktop.
A simple script for use with Quicksilver et al for ejecting all your mounted disks.
tell application "Finder"
repeat with theDisk in (get disks)
if (get ejectable of theDisk) then
eject theDisk
end if
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment