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 18:54:56 -0400
Hi Peter,
This is quite the mystery!
Your script encounters the same issue as mine. But here's where it
gets really interesting: When the second volume fails to mount, if I use
the Finder to connect to the server, I discover that the second volume is
grayed out, i.e., I can't choose it manually either. The only way to access
the grayed-out volume is to log out of the user account (The OS X user
account, not the server.) This grayed-out-volume behavior only occurs after
running either of our scripts. If I log in to the user account and then go
straight to the server via Finder, everything is normal.
Even more intriguing: About an hour ago, I set up a second test
machine running Tiger, in this case a 1.25 Ghz eMac. Guess what: Both of
our scripts work perfectly. Haven't had a single failure, yet. So, perhaps
I have a workstation issue with the G5. But what? Most intriguing.
Thanks again for your time, Peter!
Best,
Jim
Jim Trebilcock
News Systems Editor
The Gainesville Sun
Peter Waibel
<email@hidden> To: email@hidden
cc: email@hidden
06/24/05 01:15 PM Subject: Re: Mount volume flaky/broken in Tiger?
Hi Jim,
well I'm only guessing!
Since there is pretty much time between each of my "mount volume". I
presume that in your case
the second mount fails, because the first isn't yet finnished. (It's
only a guess!)
I would try something like this:
tell application "Finder"
set volumesToCheck to {"Common", "Output"}
repeat with aVolume in volumesToCheck
set aVolumeName to contents of aVolume
set urlString to "afp://" & useName & ":" &
usePass &
"@ourserver.domainname/" & aVolumeName
mount volume urlString
-- check now if the volume is really available
repeat 10 times
set diskList to (list disks)
if diskList does not contain
aVolumeName then
delay 1
else
exit repeat
end if
beep -- mount failed
end repeat
-- end check
end repeat
end tell
Peter
Am 24.06.2005 um 15:35 schrieb email@hidden:
> 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