Yes, those are all valid ways of doing it, but I was looking for an Apple CFString function. Although Bernie rightly created a very useful one, it is not the same as having one that calls Apple routines like an API. CFString functions accessed directly as oneliners from Apple tend to have a lot of back end optimisation. It is the backend optimisation that I am seeking, which I suspect does not exist as an official function. So, compared to using Find/Replace, an official function would be quicker if it exists. If not, Find/Replace will suffice. Thanks anyway! > From: Ken Shmidheiser <kshmidheiser@...> > Reply-To: <futurebasic@...> > Date: Thu, 22 Jul 2010 13:46:00 -0400 > To: <futurebasic@...> > Subject: [FB] Re [FB] Printing PCL codes to the printer > > Writing to Bernie, Deepish said: > >> That is certainly in the right direction, but only handles one line at a >> time. > > Deep, > > You could always download the flip binary, load it into your bundle, > and call from there with FB's open "Unix". > > https://ccrma.stanford.edu/~craig/utility/flip/ > > This is similar to what Christoph Dalitz has done with the drag and > drop utility ConvertNewLines: > > http://lionel.kr.hs-niederrhein.de/~dalitz/data/software/macosx/ConvertNewline > s.zip > > Conversely, in FB you could wash your text's line endings through the > Unix tr command: > > tr ' > ' ' > ' <macfile.txt > dosfile.txt > > And you don't need chomp to do it in Perl. This code translates line > endings from Mac to DOS: > > perl -pe 's/ > | > / > /g' > > There are also sed and awk versions, but these should give you the idea. > > Ken > > -- > To unsubscribe, send ANY message to: futurebasic-unsubscribe@...