Delimiting
Delimiting
- Subject: Delimiting
- From: Robert Poland <email@hidden>
- Date: Sat, 3 Sep 2005 08:59:20 -0600
Hi,
I have a script that uses a <return> for
delimiting. I use a repeat loop to extract data
with two <return>s to separate blocks.
The problem I'm having is how to reinsert the
<return>s between lines of recovered data within
the block. In the example below the return is
ignored.
set TheDescription to ""
repeat with i from 3 to {iCount}
set x to (myList's text item i)
if x = "" then exit repeat
if TheDescription = "" then
set TheDescription to x
else
set TheDescription to
TheDescription & ". " & (return) & x
end if
end repeat
if TheDescription "" then set TheDescription to TheDescription & "."
Tia,
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden