set directories with spaces

Richard MacLemale rmaclema at tampabay.rr.com
Wed Jun 26 14:40:01 EDT 2002


On 6/26/02 12:03 PM, "metacard-request at lists.runrev.com"
<metacard-request at lists.runrev.com> wrote:

> Subject: 


> From: Simon Lord <slord at mac.com>
> To: metacard at lists.runrev.com
> Reply-To: metacard at lists.runrev.com
> 
> How can we set the directory to a folder with spaces?  In the
> shell I would do the following:
> 
> cd "Mac OS X"
> 
> Under MetaCard I have to do the following which I would assume
> should work:
> 
> set the directory to "/"&quote&"Mac OS X"&quote
> 
> But that returns "can't open directory", am I missing a step?
> Anyone see an error in that script?
> 
> Sincerely,
> Simon

As Klaus replied, you can always do:

set the directory to "/Mac OS X"

But for other UNIX stuff where you are using shell(), you can use
"\ " which UNIX sees as a space.  So "Mac OS X" and Mac\ OS\ X are seen as
the same thing by UNIX.

-- 
:)
Richard MacLemale
Network Administrator
J. W. Mitchell High School




More information about the metacard mailing list