• 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: email@hidden
  • Date: Thu, 5 Dec 2002 21:38:09 -0500

On 12/3/02 7:47 PM, "Jeffrey Mattox" <email@hidden> wrote:

> The last line of code below gives different results depending on
> whether the value of text item delimiters is "" or return. My
> AppleScript book clearly says that the TID setting only affects text
> items, not characters, words or paragraphs.
>
> 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

You probably will get what you want if you use the construction

"text from paragraph 2 to paragraph 100 of theInputText"

"text from A to B" uses A and B as delimiters, and extracts the string between.
A through B gives you every item (in this case, every paragraph) between A and
B, as a list of paragraphs.

--
Scott Norton Phone: +1-703-299-1656
DTI Associates, Inc. Fax: +1-703-706-0476
2920 South Glebe Road Internet: email@hidden
Arlington, VA 22206-2768 or email@hidden
_______________________________________________
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: Where is app appears in OS 8's but not OS 9's.
  • Next by Date: Re: Idle handler question
  • Previous by thread: Re: Strange text item delimiter effect
  • Next by thread: ical delete object
  • Index(es):
    • Date
    • Thread