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

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


  • Subject: Re: Test for multiples a character in a paragraph- Tex-Edit or > OSAX
  • From: "Marc K. Myers" <email@hidden>
  • Date: Sat, 27 Jan 2001 09:36:26 -0500
  • Organization: [very little]

Shane Stanley wrote:
> Date: Sat, 27 Jan 2001 15:22:27 +1100
> Subject: Re: Test for multiples a character in a paragraph- Tex-Edit or
> OSAX
> From: Shane Stanley <email@hidden>
> To: AS lists <email@hidden>
>
> On 27/1/01 10:06 AM +1000, Xandra Lee, email@hidden, wrote:
>
> > 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).
>
> You could "set every character where it is aTab to verttab", and then loop
> through paragraphs, using "set character 1 of paragraph i where it = verttab
> to aTab".

The logic is impeccable and much better than my solution, but the syntax
of the second statement won't work in Tex-Edit Plus. Instead, as you
loop through the paragraphs you'd say:

set foundIt to (search paragraph i looking for vertTab)
if foundIt then
set selection to aTab
end if

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[1/27/01 9:35:30 AM]


  • Follow-Ups:
    • Re: Test for multiples a character in a paragraph- Tex-Edit or OSAX
      • From: "Christopher C. Stone" <email@hidden>
  • Prev by Date: Flickering Menus in Script Editor
  • Next by Date: Maximum script lenght ?!??
  • Previous by thread: Re: Flickering Menus in Script Editor
  • Next by thread: Re: Test for multiples a character in a paragraph- Tex-Edit or OSAX
  • Index(es):
    • Date
    • Thread