Re: Scripting Additions: Embracing the Horror of Unix
Re: Scripting Additions: Embracing the Horror of Unix
- Subject: Re: Scripting Additions: Embracing the Horror of Unix
- From: Christopher Nebel <email@hidden>
- Date: Thu, 31 Jan 2002 23:05:53 -0800
On Thursday, January 31, 2002, at 06:34 PM, Timothy Bates wrote:
On 1/2/02 1:20 PM, "Christopher Nebel" <email@hidden> wrote:
The goal is that you should be able to say
quoted form of POSIX path of f
and have it work
May I suggest making [quoted form] an option to POSIX path? i.e.,
POSIX path of f with quoting
You may, but we considered this possibility and rejected it. For
several reasons, we preferred to have a property rather than a verb, and
properties don't have options like this.
Second, "quoted form" and "POSIX path" are orthogonal, though that might
not be obvious. Say you want to write out a bunch of file paths to a
file that will be processed by some other tool, say a Perl script.
Quoting would then be wrong. Furthermore, say you want to pass some
multi-word string that isn't a path to a shell command. (E.g., a
check-in comment for cvs.) Now you need quoting that isn't tied to
files, but only to strings. Since we needed generic quoting anyway, it
made more sense to have two properties rather than one conflated verb
plus maybe a property.
--Chris Nebel
AppleScript Engineering