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
Mime-Version:
1.0 (Apple Message framework v1076)
Content-Type:
text/plain; charset=us-ascii; format=flowed; delsp=yes
Date:
Fri, 18 Sep 2009 08:40:48 -0700
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
From:
In-Reply-To:
Content-Transfer-Encoding:
7bit
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Parts/Attachments:
text/plain (17 lines)
  Thanks Mark, Shane and Sander for your advice on this, it feels like  
I've crossed the finish line, although with this project it's more  
like crossing the starting line!

  set myShell to "tr '\\r' '\\n' " & pathName
  set myPattern to "|(TRAV)|"
  set myShell to "tr '\\r' '\\n' <" & pathName & " | grep " & quoted  
form of myPattern
  do shell script myShell

ES


On Sep 18, 2009, at 12:14am, Shane Stanley wrote:

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

ATOM RSS1 RSS2