• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strange text item delimiter effect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: iconquestion
  • Next by Date: Tex-Edit: select after insertion point
  • Previous by thread: Re: Strange text item delimiter effect
  • Next by thread: Re: Strange text item delimiter effect
  • Index(es):
    • Date
    • Thread