Re: Find server name of mounted volume
Re: Find server name of mounted volume
- Subject: Re: Find server name of mounted volume
- From: Stan Cleveland <email@hidden>
- Date: Fri, 03 Nov 2006 15:10:53 -0800
- Thread-topic: Find server name of mounted volume
On 11/3/06 12:40 PM, Timothy Wilkinson wrote:
> I've got two volumes mounted on the desktop from two different servers. Both
> volumes are named "HOME". I need to be able to distinguish one from the
> other. If I do a "Get Info" in the Finder it shows me the server path for
> each.
>
> Is there any way in AppleScript to get that server path information? I've
> looked through System Events, Finder, Standard Additions and Googled but I
> haven't found anything about it.
>
> If you can't get that can someone suggest another way to distinguish between
> these two mounted volumes?
This isn't pretty, but it may provide something that works for you:
tell application "Finder"
try
set goodHome to first disk whose capacity is 9.9886559232E+10
set badHome to first disk whose capacity is 8.3889594368E+10
on error number -1728
-- missing a disk
end
end
Of course, you would need the correct capacities of YOUR disks. If the
capacities of the disks are not unique, then perhaps one of these other
Finder properties would differentiate them: comment, creation date,
description, modification date, owner, physical size, size, or URL.
You may also be able to do something with the index of each disk, although
that might depend upon the order in which the disks were mounted.
Stan C.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden