Re: Strange text item delimiter effect
Re: Strange text item delimiter effect
- Subject: Re: Strange text item delimiter effect
- From: has <email@hidden>
- Date: Wed, 4 Dec 2002 11:28:15 +0000
Jeffrey Mattox wrote:
set outText to ""
set someStuff to (paragraphs 2 through 100 of theInputText)
set AppleScript's text item delimiters to return
set outText to outText & someStuff
Commenting out the setting TID line gives different results (the
lines in outTest appear mushed together).
So, how is that line affected by the setting of TID?
What Paul said.
Best solution in this case is to replace:
set someStuff to (paragraphs 2 through 100 of theInputText)
--> list
with:
set someStuff to (text (paragraph 2) through (paragraph 100) of
theInputText)
--> string
avoiding the need to mess with lists, coercions and TIDs altogether.
has
--
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.