• 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: Mounting network volumes with different name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mounting network volumes with different name


  • Subject: Re: Mounting network volumes with different name
  • From: "Robert C. Jacobson" <email@hidden>
  • Date: Tue, 16 Jul 2002 10:19:35 -0400

At 8:49 AM -0500 7/16/02, Secrest, Chris wrote:
I apologize in advance if this is something simple but I have not been able
to find out how to do this.

First off I am trying to write a script (in OS X) that will mount a network
volume and call it something else.

I'm not sure you can do this without using the command line. Fortunately, you *CAN* use the command line from AppleScript. Check out this page for how to do it via command line:

<http://users.phg-online.de/tk/automount afp-servers.html>

Then just use "do shell script" to run the command.

Using the command line will enable you to mount the disk under whatever name you want. For example:

mkdir /Volumes/foo
/sbin/mount_afp 'afp://user:password@IP/volume' /Volumes/foo

Will mount it as "foo". NOTE: You may need to run "disktool -r" to get the volume to show up on the desktop.

Its probably not as secure as a compiled app, as the password will be in plain text. Make the script owner-read only (chmod 700) to mitigate this problem.


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Robert Jacobson email@hidden
BS, Aeronautical Engineering Univ. of Md., College Park
Flight Ops. Team - SOlar Heliospheric Observatory (SOHO)
(301) 286-1591
_______________________________________________
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.

References: 
 >Mounting network volumes with different name (From: "Secrest, Chris" <email@hidden>)

  • Prev by Date: Mounting network volumes with different name
  • Next by Date: Applescript error -2709 over SSH after hostconfig change
  • Previous by thread: Mounting network volumes with different name
  • Next by thread: Applescript error -2709 over SSH after hostconfig change
  • Index(es):
    • Date
    • Thread