• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Rant] Will mount volume EVER work the way it is supposed to?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Rant] Will mount volume EVER work the way it is supposed to?!


  • Subject: Re: [Rant] Will mount volume EVER work the way it is supposed to?!
  • From: JollyRoger <email@hidden>
  • Date: Sun, 22 Jul 2001 18:29:59 -0500

On 7/22/2001 3:02 PM, "hvar" <email@hidden> wrote:

>> Every now and then I run into a situation where I see that it would be
>> terrific if I could mount an AppleShare volume using AppleScript. And each
>> time, I find myself typing something similar to the following into my script
>> editor:
> [snip]
>
> JR,
>
> I am surprised about your writings, as I am using a script to mount
> servervolumes using applescript over TCP/IP without problems. I was
> thinking; could it be that you username or password contains
> "illegal" characters? (Like a slash, questionmark or space?)

Only spaces. I've tried encoding the spaces with no luck (see below). Here
are the samples along with the errors I get when I try them:

---------------------------------------------------------
-- obscurity = Linux server running netatalk-1.4b2+asun2.1.4
---------------------------------------------------------

mount volume "afp://obscurity/ftp/" as user name "docs" with password
"password"
-- An error of type -3170 has occurred.

mount volume "afp://10.1.0.3/ftp/" as user name "docs" with password
"password"
-- Network file permission error.

mount volume "afp://docs:password@obscurity/ftp"
-- An error of type -3170 has occurred.

mount volume "afp://docs:password@10.1.0.3/ftp"
-- Network file permission error.

mount volume "ftp" on server "obscurity" as user name "docs" with password
"password"
-- this one works!

--------------------------------------------------------------------
-- StarGate = Mac OS 8.6 server running standard AppleShare file sharing
--------------------------------------------------------------------

mount volume "afp://StarGate/ftp/" as user name "Jolly Roger" with password
"password"
-- An error of type -3170 has occurred.

mount volume "afp://10.1.0.1/ftp/" as user name "Jolly Roger" with password
"password"
-- An error of type -5016 has occurred.

mount volume "afp://Jolly Roger:password@StarGate/ftp"
-- An error of type -3170 has occurred.

mount volume "afp://Jolly Roger:password @10.1.0.1/ftp"
-- An error of type -5016 has occurred.

mount volume "StarGate" on server "StarGate" as user name "Jolly Roger" with
password "password"
-- Network file permission error.

> Here is the essensials of a longer script that I know works on system 9.1,
> 9.04, 8.6. I have not encountered the problems you describe:

You must be lucky then. There's nothing special about my setup. On the
host machine, I'm running Mac OS 9.1, AppleScript 1.6, with all the latest
updates from Apple.

> Out of convenience it uses Tanakas OSAXen to encode characters, but
> of course you could find/replace them manually a space would the
> become " ":
>
> This is part of a lengthy script that runs unattended on several
> macs. It has been working very well. Server is Sun running Helios
> Ethershare.
>
> My two cents,

----------------------------------------------------------
-- StarGate = Mac OS 8.6 server running standard AppleShare file sharing
-- encoded login name
----------------------------------------------------------

mount volume "afp://StarGate/ftp/" as user name "Jolly Roger" with
password "password"
-- An error of type -3170 has occurred.

mount volume "afp://10.1.0.1/ftp/" as user name "Jolly Roger" with
password "password"
-- An error of type -5016 has occurred.

mount volume "afp://Jolly Roger:password@StarGate/ftp"
-- An error of type -3170 has occurred.

mount volume "afp://Jolly Roger:password @10.1.0.1/ftp"
-- An error of type -5016 has occurred.

mount volume "StarGate" on server "StarGate" as user name "Jolly Roger"
with password "password"
-- Network file permission error.


  • Follow-Ups:
    • Re: [Rant] Will mount volume EVER work the way it is supposed to?!
      • From: Simon Forster <email@hidden>
  • Prev by Date: Re: toggle hide
  • Next by Date: Re: toggle hide
  • Previous by thread: Re: toggle hide
  • Next by thread: Re: [Rant] Will mount volume EVER work the way it is supposed to?!
  • Index(es):
    • Date
    • Thread