Re: Writing To A File
Re: Writing To A File
- Subject: Re: Writing To A File
- From: Walter Ian Kaye <email@hidden>
- Date: Tue, 30 Sep 2003 11:31:35 -0700
At 12:48p -0500 09/30/2003, Steve Mills didst inscribe upon an
electronic papyrus:
On Tuesday, Sep 30, 2003, at 12:29 US/Central, Walter Ian Kaye wrote:
I guess you don't understand what a 'file reference' is.
(Hint: it is NOT a pathname. Never was.)
Yes, I know what a file reference is. AppleScript blurs that line
because you still have to type out a pathname to make a file
reference.
Blurs? It always made it easier for me, cuz then I can build up the
pathname in a variable, and do 'file foo' (especially helpful now
with POSIX file, which rewrites what you wrote -- at least in Script
Debugger it does).
BTW, a URL looks like a pathname, but RFC 2396 clearly states that it is not.
The commands expect you to be smart enough to RTFM first.
Yes. The manual being the class that's displayed right after the
verb, and the comment after that, and the inconsistency of the data
types accepted by other commands within that same scripting addition.
Not sure what you mean. The dictionary entry says it accepts a file
or alias. It does not say anything about accepting a pathname string.
None of the file commands do.
Steve, can you produce any Apple documentation stating that a
pathname is an acceptable substitute for a file reference? (I think
I can guarantee that you won't find any, so unless you have a lot
of time to waste...)
Why should I? Some of the commands were obviously written to accept
strings or they wouldn't even work sometimes. It's just not
consistent. That's all I'm pointing out here. Jeez.
To expect consistency from undefined behavior is not logical.
-Mr. Spock
_______________________________________________
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.