Re: Find server name of mounted volume
Re: Find server name of mounted volume
- Subject: Re: Find server name of mounted volume
- From: Timothy Wilkinson <email@hidden>
- Date: Mon, 06 Nov 2006 15:05:37 -0500
- Thread-topic: Find server name of mounted volume
I found a solution by coming at things the other way. Instead of seeing if
the volume is mounted before I try to mount it again I just go ahead and
mount it and look for the error.
I wrapped each of the mount volume commands in a try loop and trapped for
error -55. If it gets that error the script knows the volume is already
mounted and just moves to the next command.
Many thanks to everyone for the great suggestions.
Tim
--------------------------------------
Tim Wilkinson
Lab Manager
ITC-ACHS
University of Virginia
email@hidden
(434)982-4024
> From: "Mark J. Reed" <email@hidden>
> Date: Mon, 6 Nov 2006 09:31:20 -0500
> To: Timothy Wilkinson <email@hidden>
> Cc: Stan Cleveland <email@hidden>, "email@hidden"
> <email@hidden>
> Subject: Re: Find server name of mounted volume
>
> Are they not both mounted at the same time?
>
> On 11/6/06, Timothy Wilkinson <email@hidden> wrote:
>> Mark,
>>
>> Since they both have the same name they both return the same POSIX path:
>>
>> "/Volumes/home"
>>
>> Tim
>>
>>
>> --------------------------------------
>> Tim Wilkinson
>> Lab Manager
>> ITC-ACHS
>> University of Virginia
>> email@hidden
>> (434)982-4024
>>
>>
>>> From: "Mark J. Reed" <email@hidden>
>>> Date: Fri, 3 Nov 2006 18:17:39 -0500
>>> To: Stan Cleveland <email@hidden>
>>> Cc: "email@hidden" <email@hidden>
>>> Subject: Re: Find server name of mounted volume
>>>
>>>>> 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.
>>>
>>> They should have unique POSIX names under /Volumes. What does "POSIX
>>> path of" return for each?
>>>
>>>
>>> --
>>> Mark J. Reed <email@hidden>
>>>
>>
>>
>>
>
>
> --
> Mark J. Reed <email@hidden>
>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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