Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Keep a single partition mounted when ejecting others' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Keep a single partition mounted when ejecting others
Authored by: hypert on Mar 31, '05 09:54:23PM
I have a simple AppleScript which I use to unmount disks. Mostly I use this to unmount shared drives and disk images if they're piling up, but the same method should work for local drives and partitions.

tell application "Finder"
	set bootDisk to name of startup disk
	set otherDisks to every disk whose (name is not bootDisk) and (name is not "Media")
	repeat with myDisk in otherDisks
		try
			eject myDisk
		end try
	end repeat
end tell


[ Reply to This | # ]