Re: Mounting network volumes with different name
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.