Re: mount volume
Re: mount volume
- Subject: Re: mount volume
- From: Axel Luttgens <email@hidden>
- Date: Mon, 24 Sep 2007 14:41:05 +0200
On 24/09/07 13:29, Wayne Melrose wrote:
[...]
Axel, thanks very much for the reply. Although I'm having some
trouble getting mount_afp working!? I'm not sure where I'm going
wrong, would you mind having a look?
I thought this would work?
mount_afp afp://MyUser:MyPass@10.0.0.1/MyVolumeName
although that is getting an error?
According to mount_afp's man page, the syntax is:
mount_afp [-i] [-o options] afp_url node
where "node" is the "Path to mount point, which must be a directory that
the user has write permissions for".
This means that you'll have to create the directory in which you want
the mount to occur.
The standard OSX way is to create the directory in the invisible
directory /Volumes.
So, you could try something like this:
set MountPoint to quoted form of "/Volumes/mymount"
set AfpUrl to quoted form of "afp://MyUser:MyPass@10.0.0.1/MyVolumeName"
do shell script "mkdir " & MountPoint & "; mount_afp " & AfpUrl & "
" & MountPoint
Note that if the volume is unmounted from within the Finder, the
directory will be automatically deleted; on the other hand, should you
want to unmount it with the shell command "umount", you'll have to
delete it youself.
The same way, one has to take care not to choose a directory already in
use (but the directory's name does not have to bare any relationship
with the remote volume's name).
In a word, the shell way requires some additional management.
The same holds for mount_smbfs (I mean, the need for a mount point).
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden