MACSCRPT Archives

May 2003

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Shane Stanley <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 22 May 2003 09:03:45 +1000
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
On 22/5/03 12:18 AM +1000, Eric Schult, [log in to unmask], wrote:

> I like Tanaka's for its ability to readFromFile in one line of code, without
> having to open for access and close access (and having to worry about leaving
> the file busy if there's an error before the close access line is reached).
> It's just a quibble, really; it's what I'm used to.

Try:

 set x to read file pathToFile

Your quibble is baseless.

> The same argument for writeToFile in Tanaka's. It's just cleaner.

"cleaner"? Because it uses commands with names like "readFromFile" when
AppleScript guidelines say not to?

I think you were closer to the mark earlier: "it's what I'm used to".

--
Shane Stanley,  [log in to unmask]

ATOM RSS1 RSS2