• 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
Test for multiples a character in a paragraph- Tex-Edit or OSAX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Test for multiples a character in a paragraph- Tex-Edit or OSAX


  • Subject: Test for multiples a character in a paragraph- Tex-Edit or OSAX
  • From: Xandra Lee <email@hidden>
  • Date: Fri, 26 Jan 2001 18:06:30 -0500

Given some text is there any way to search for multiple instances of a
character in each paragraph. Then replace only specific instances?


I need to look at each paragraph seperately, and if there's MORE than
one tab character (ascii 9), I need to replace all But the first with
ascii 11 (verttab).

so that
Some text (tab mark) moretext (tabmark) more text.ascii 13
-->
Some text (tab mark) moretext (ascii 11) moretext. (ascii 13)
anytime more that there is more than 1 tab mark in a document.


I'm trying to Applescript this with Tex-Edit, but if there's an OSAX that
can do this elegantly I'm game.

Ideas?

xandra

Alixandra Leigh
AceDesign
email@hidden
------------------------------------------
Furniture:
><http://home.rochester.rr.com/alexleighs/furniture/furniture.htm>
Renderings:
><http://home.rochester.rr.com/alexleighs/interiors/interiors.htm>


  • Follow-Ups:
    • Re: Test for multiples a character in a paragraph- Tex-Edit or OSAX
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Newbie Q: Drag and drop "simulation" with AppleScript
  • Next by Date: Replace with ASCII 11 in MS Word??
  • Previous by thread: Re: Newbie Q: Drag and drop "simulation" with AppleScript
  • Next by thread: Re: Test for multiples a character in a paragraph- Tex-Edit or OSAX
  • Index(es):
    • Date
    • Thread