• 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: mount volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >mount volume (From: Wayne Melrose <email@hidden>)
 >Fwd: mount volume (From: Wayne Melrose <email@hidden>)
 >Re: Fwd: mount volume (From: Axel Luttgens <email@hidden>)
 >Re: mount volume (From: Wayne Melrose <email@hidden>)

  • Prev by Date: Re: Is it possible to Applescript the deletion and addition of items from a Finder window's sidebar?
  • Next by Date: Re: Is it possible to Applescript the deletion and addition of items from a Finder window's sidebar?
  • Previous by thread: Re: mount volume
  • Next by thread: Microsoft Word save as via Applescript
  • Index(es):
    • Date
    • Thread