Re: POSIX file
Re: POSIX file
- Subject: Re: POSIX file
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 06 Oct 2003 07:27:26 -0700
On 10/6/03 3:27 AM, "Christopher Nebel" <email@hidden> wrote:
>
On Oct 5, 2003, at 1:57 PM, Paul Berkowitz wrote:
>
>
> If you receive a POSIX path from somewhere, it will have spaces within
>
> the
>
> path escape-backslashed, or else it will be in "quoted form" with
>
> single
>
> quotes.
>
>
Where are you getting your POSIX paths from, exactly? Quoting (either
>
using quotes or backslashes) is purely a shell construct, and has
>
nothing to do with the actual path or its POSIX-ness. It's possible to
>
remove the quotes by running the string through echo(1), but depending
>
on where they're coming from, it's probably possible to generate the
>
correct data directly.
In this particular case, I was trying to help someone on a Python mailing
list who needed Mac-type paths for some function. I had to forego the
pleasure of suggesting an AppleScript solution. Someone else had an
all-Python way of doing it. I'm pretty much a total novice at things POSIX,
so I haven't seen POSIX paths outside the shell context, and have never seen
one that wasn't backslashed or quoted there. I'll wait until I come upon a
concrete example, and will return to the issue then. Thanks.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.