• 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: open afp location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open afp location


  • Subject: Re: open afp location
  • From: Hung Phan <email@hidden>
  • Date: Tue, 11 Jul 2006 13:50:25 -0700

This is just pure luck :)
I found using   is equivalent of space character.

On Jul 11, 2006, at 12:52 PM, Doug McNutt wrote:

At 11:46 -0700 7/11/06, Hung Phan wrote:
open location "afp://user:pass@server/Testing Volume"
There is a space between Testing and Volume, how do I escape the space character?

"afp://user:pass@server/Testing\ Volume"

The backslash is the usual escape character in UNIX-like stuff. But in a shell the enclosing quotes would have done the same thing.

Note that AppleScript also uses the \ character so you MAY need:
"afp://user:pass@server/Testing\\ Volume"
Depending on which application is processing the open location command.


I don't know if you can use "quoted form of" when the target is not a local file but it would be more portable if it works and it would handle the \\ thing if you need it..

And watch for gremlins!
If that afp volume is on a Mac OS 8 or less volume - AND - you're running Tiger it will not work.


--

Applescript syntax is like English spelling:
Roughly, though not thoroughly, thought through.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40canby.k12.or.us


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: open afp location
      • From: "Mark J. Reed" <email@hidden>
References: 
 >(no subject) (From: Hung Phan <email@hidden>)
 >Re:open afp location (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re:open afp location
  • Next by Date: Re: open afp location
  • Previous by thread: Re:open afp location
  • Next by thread: Re: open afp location
  • Index(es):
    • Date
    • Thread