MACSCRPT Archives

September 2009

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:
Fri, 18 Sep 2009 17:14:30 +1000
Content-Type:
text/plain
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