• 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 with space in it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mount Volume with space in it


  • Subject: Re: Mount Volume with space in it
  • From: Emmanuel Levy <email@hidden>
  • Date: Thu, 26 Feb 2009 15:38:08 +0100

Title: Re: Mount Volume with space in it
At 9:28 AM -0500 2/26/09, email@hidden wrote:
Hello all:

I am trying to write a script to mount user home directories on a 10.4 box. The home directory is an SMB share and the issue appears to be that the share has a space in the share name.

I have tried:

mount volume"smb://servername/share name"
mount volume"smb://servername/share name"
mount volume"smb://servername/share\040name"
mount volume"smb://servername/'share name'"


do shell script("mount_smbfs -N //servername/share name")
do shell script("mount_smbfs -N //servername/share name")
do shell script("mount_smbfs -N //servername/share\040name")
do shell script("mount_smbfs -N //servername/'share name'")
None of these have worked I am hoping that one of you can end my pain where Google searching failed.

I would try: do shell script ("mount_smbfs -N " & quoted form of theServerpath)

Escaping spaces in shell commands does not work exactly like escaping characters in a URL ...

Emmanuel
 _______________________________________________
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

  • Prev by Date: Mount Volume with space in it
  • Next by Date: Re: Mount Volume with space in it
  • Previous by thread: Re: Mount Volume with space in it
  • Next by thread: Re: Mount Volume with space in it
  • Index(es):
    • Date
    • Thread