• 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: Cleaning Tex Edit +
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cleaning Tex Edit +


  • Subject: Re: Cleaning Tex Edit +
  • From: MaryT <email@hidden>
  • Date: Sun, 30 Nov 2003 12:54:01 -0600

I want to replace every double CR by a single one, in one script pass.


Here is a script I use. It works fine. But I am a neophyte and there may be a better way.

set searchList to {"^c^c^c^c^c", "^c^c^c^c", "^c^c^c"}
set replaceList to {"^c", "^c", "^c"}
tell application "Tex-Edit Plus"
activate
tell window 1
repeat with x from 1 to the number of items in replaceList
replace replacing with item x in replaceList looking for item x in searchList ,
with cases matching and whole words matching
end repeat
end tell
end tell

My best,
MaryT
_______________________________________________
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.

References: 
 >Cleaning Tex Edit + (From: Bernard Azancot <email@hidden>)

  • Prev by Date: Re: a handler runs after compile, but never again
  • Next by Date: Re: a handler runs after compile, but never again
  • Previous by thread: Cleaning Tex Edit +
  • Next by thread: Re: Cleaning Tex Edit +
  • Index(es):
    • Date
    • Thread