Re: disconnect external volumes
Re: disconnect external volumes
- Subject: Re: disconnect external volumes
- From: Christopher Nebel <email@hidden>
- Date: Sun, 14 Apr 2002 15:48:22 -0700
On Friday, April 12, 2002, at 11:34 AM, JJ wrote:
When the "list disks" command is used you get a list of your hardrive
name along with any disks that you have mounted including any servers
that you are connected to through a network.
Is there a way via AS to dismount or disconnect from all of these
except for your hardrive?
Usually, your startup disk has ID -1 (ask the Finder about IDs).
Alternatively, you could use the various properties of disks in the
Finder to determine which ones you want, in particular "local volume",
"ejectable", and "startup". For example:
tell application "Finder"
eject every disk whose startup is false
-- eject everything but the startup disk
eject every disk whose local volume is false
-- "eject" every non-local disk, i.e., all server volumes.
end
These two are quite different, especially if you have multiple hard
drives or partitions.
--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.