• 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
TextEdit find/replace script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TextEdit find/replace script


  • Subject: TextEdit find/replace script
  • From: Bernard Azancot <email@hidden>
  • Date: Mon, 16 Oct 2006 12:36:45 +0200

Hello scripters !

Ihave written a very simple script performing the correction of OCR mistakes in a TextEdit RTF file.
Il use TextCommands osax.


-- Script --

tell application "TextEdit"
	tell window 1
		change " cie " into " de "
		change " dc " into "de'"
		change "N) " into "- "
		change " O," into "0,"
		change "INDICAnON " into "INDICATION "
		change " ct " into " et "
		change " L5-SI " into " L5-S1 "
		change " slir " into " sur "
		change " sIIr " into " sur "
		change " inteme " into " interne "
		change " exteme " into " externe "
		change " ci '" into " d'"
		change " ci'" into " d'"
		change " quc " into " que "
		change " jc " into " je "
		change " nonnal " into " normal "
		change " lc " into " le "
		change " d ' " into " d' "
		change " l ' " into "l'"
	end tell
end tell

-- End of script --

-- nothing happens...
Any suggestion ?

Thanks in advance.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: TextEdit find/replace script
      • From: "Gary (Lists)" <email@hidden>
    • Re: TextEdit find/replace script
      • From: Rob Stott <email@hidden>
    • Re: TextEdit find/replace script
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: SCRIPTING INDESIGN: Question About Labels
  • Next by Date: Re: TextEdit find/replace script
  • Previous by thread: Re: SCRIPTING INDESIGN: Question About Labels
  • Next by thread: Re: TextEdit find/replace script
  • Index(es):
    • Date
    • Thread