Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TextEdit find/replace script



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.