MACSCRPT Archives

September 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

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

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

Print Reply
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Mime-version:
1.0
Date:
Fri, 18 Sep 2009 17:14:30 +1000
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Content-type:
text/plain; charset="US-ASCII"
Subject:
From:
Shane Stanley <[log in to unmask]>
In-Reply-To:
Content-transfer-encoding:
7bit
Parts/Attachments:
text/plain (15 lines)
On 18/9/09 3:54 PM, "[log in to unmask]" <[log in to unmask]> wrote:

> do shell script "tr '\\r' '\\n' " & pathName &...

Try:

do shell script "tr '\\r' '\\n' <" & pathName &...

tr normally works on standard input, so you need the "<" to tell it to use
the file.

-- 
Shane Stanley <[log in to unmask]>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>

ATOM RSS1 RSS2