set s to "TD200026
HONDA
CIVIC_FERIO
GF-EK2
2000/03
AT
74K
207K
TD200026
HONDA
CIVIC_FERIO
GF-EK2
2000/03
AT
74K
207K
"
set s to change "([^\n])\n([^\n])" into "\1\t\2" in s with regexp
set s to change "\n+" into "\n" in s with regexp
Result:
"TD200026 HONDA CIVIC_FERIO GF-EK2 2000/03 AT 74K 207K
TD200026 HONDA CIVIC_FERIO GF-EK2 2000/03 AT 74K 207K
"
Notes:
I’ve assumed text is linefeed-delimited (n); you’ll need to modify the regexes if it’s return-delimited (r).
The Satimage osax isn’t Unicode-savvy, so if you’re dealing with Unicode text you’ll need to use something else. (AS sucks for text manipulation, doubly so for Unicode text.)