Re: Re: copying over an appletalk network
Re: Re: copying over an appletalk network
- Subject: Re: Re: copying over an appletalk network
- From: email@hidden
- Date: Sun, 10 Feb 2002 04:08:11 EST
Your syntax looks good. I'm not sure what the exact meaning of error -5106
means, but I've seen it with connection failures too. You shouldn't need to
define any AppleTalk zones. Be sure everything is spelled correctly and all
the right sharing permissions, user names, and passwords are correct. FYI,
here's a handler of mine from a time tested script, which mounts remote
volumes too (file sharing over TCP/IP).
-- requires Tanaka's osax 2.01
on mountVolume(xVolume, xServer, xUser, xPswd)
set success to false
try
mount volume xVolume on server xServer as user name xUser with
password xPswd
set success to true
on error
try
set xVolumeURL to MT Encode URL xVolume
set xServerURL to MT Encode URL xServer
set xUserURL to MT Encode URL xUser -- Tanaka's osax 2.0
set xPswdURL to MT Encode URL xPswd
mount volume ("afp://" & xUserURL & ":" & xPswdURL & "@" &
xServerURL & "/" & xVolumeURL) as string
set success to true
on error errmsg
display dialog "Could not mount the volume " & xVolume & ".
Sorry." buttons {"Thanks for trying", "Try to continue anyway"} default
button 1 giving up after 10
set buttRet to button returned of the result
if buttRet is equal to "Try to copy anyway" then set success to
true
end try
end try
return success
end mountVolume
Good luck.
Jeff Baumann
email@hidden
www.linkedresources.com
In a message dated 2/10/02 2:35:32 AM, John Cochrane wrote:
>
Hi Jeff.
>
>
Maybe that 's it. On the network there are a few machines with OS9.0.4 but
currently
>
the
>
main copying would be from one with OS 9.2.1 to one with 9.0.4. I'm not
with them
>
at the
>
moment so I don't know what versions of Applescript they are. I was not
impressed
>
with the
>
Network Browser application in 9.2.1 which always crashes so that I have to
connect
>
via the
>
Chooser. From the notes to the Apple support pages this seemed to be a
regular
>
problem.
>
Maybe this is the cause. I don't know which way to go with the OS's. Perhaps
I
>
should
>
install 9.1.
>
Does the syntax of the script seem OK and does anyone know what an error
-5106
>
is?
>
>
John
>
>
>
email@hidden wrote:
>
>
> You say "OS 9". That's not good enough. I have found huge differences
amongst
>
> the various incarnations of 9, with 9.1 being the best. Under other
versions
>
> of the OS, mount volume has been decidedly flaky and unreliable for me.
With
>
> MacOS 9.1, it "Just Works(TM)".
>
>
>
> Jeff Baumann
>
> email@hidden
>
> www.linkedresources.com
>
>
>
> In a message dated 2/10/02 12:09:56 AM, John Cochrane wrote:
>
>
>
> >Hi Applescripters
>
> >
>
> >I am using OS 9 and trying to copy files over an Appletalk network but
>
> >cannot get a script to connect.
>
> >Amongst other attempts I have tried
>
> >
>
> >mount volume "computer 1's HD" on server "computer 1" as user name
>
> >"computer 2" with password "password"
>
> >
>
> >I consistently get an error -5106.
>
> >I believe I have the network set up correctly but I don't have any
>
> >appletalk zones defined. Is this the problem or am I being dumb and
>
> >overlooking something obvious?
>
> >Sorry to trouble you with a basic question but I have searched around
>
> >and tried a few things without success.
_______________________________________________
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.