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:
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 18 Sep 2009 08:40:48 -0700
Content-Type:
text/plain
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