TextEdit find/replace script
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