• 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: TexEdit script - a longshoot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TexEdit script - a longshoot


  • Subject: Re: TexEdit script - a longshoot
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 29 Mar 2001 07:47:00 -0800

On 3/29/01 7:41 AM, email@hidden
<email@hidden> wrote:

>So I want a script that changes the return to tab.

TIDs to the rescue.

set the textToBeProcessed to "This is the first sentence. This is the
second sentence. This is the third sentence."

--There are tabs between the sentences.

set {TID, text item delimiters} to {text item delimiters, tab}
set the textItems to the text items of the textToBeProcessed
set text item delimiters to {return}
set the finishedProduct to the textItems as text
set text item delimiters to TID
the finishedProduct

--> "This is the first sentence.
This is the second sentence.
This is the third sentence."

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Dog paddling in the deep end
      • From: Andrew C Sosinski <email@hidden>
  • Prev by Date: Re: TexEdit script - a longshoot
  • Next by Date: Dog paddling in the deep end
  • Previous by thread: Re: TexEdit script - a longshoot
  • Next by thread: Dog paddling in the deep end
  • Index(es):
    • Date
    • Thread