Re: Mount volume flaky/broken in Tiger?
Re: Mount volume flaky/broken in Tiger?
- Subject: Re: Mount volume flaky/broken in Tiger?
- From: email@hidden
- Date: Fri, 24 Jun 2005 09:35:00 -0400
Hi Peter,
Thanks for your reply. I'll take your advice on the operators.
Are you mounting multiple volumes housed on the same server? That's
where things go wrong for me. If I'm mounting a single volume, everything
is fine. It's only in mounting multiple volumes that issues arise.
Thanks again.
Jim Trebilcock
News Systems Editor
The Gainesville Sun
Peter Waibel
<email@hidden> To: email@hidden
cc: email@hidden
06/24/05 06:06 AM Subject: Re: Mount volume flaky/broken in Tiger?
Am 23.06.2005 um 19:32 schrieb email@hidden:
> Hello,
> Is anyone else having issues with the mount volume command in
> Tiger?
> The following script works perfectly in Panther (actually, has worked
> well
> since 9.0.4 . . .)
>
> set diskList to (list disks)
> if diskList does not contain "Common" then
> mount volume "afp://" & useName & ":" & usePass &
> "@ourserver.domainname/Common"
> end if
> if diskList does not contain "Output" then
> mount volume "afp://" & useName & ":" & usePass &
> "@ourserver.domainname/Output"
> end if
I don't have problems with the mount volume command on tiger.
And my code looks similar to yours.
As a precaution I would avoid the use of operators (&) in an argument.
Mount volume needs a string as argument.
The & operator's result can be string, list or record,
depending on the operand to the left of the & operator.
set urlString to "afp://" & useName & ":" & usePass &
"@ourserver.domainname/Common"
-- now it is easy to check the arguments for mount volume before using
them
-- return urlString
-- return class of urlString
mount volume urlString
>
> And so forth for the many volumes my editors mount from our XServe.
> In Tiger, the results are extremely flaky. Usually, the first
> referenced
> volume will mount, but the next volumes in the list don't. When I wrap
> the
> mount volume command in a try statement, I get the following returned
> as
> the error message and number:
> "Disk some object wasn't found" -35 Hence, the volumes aren't being
> found
> for some bizarre reason. I've checked network connectivity, so that's
> not
> the issue.
> Even more strange: Sometimes all of the volumes mount perfectly.
> There seems no rhyme or reason or pattern to this. However, usually the
> script fails to mount all of the volumes.
> Anyone have thoughts/workarounds on this?
> Thanks,
> Jim
>
> Jim Trebilcock
> News Systems Editor
> The Gainesville Sun
> 352-338-3157
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> email@hidden
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden