Re: TextEdit find/replace script
Re: TextEdit find/replace script
- Subject: Re: TextEdit find/replace script
- From: Yvan KOENIG <email@hidden>
- Date: Mon, 16 Oct 2006 13:05:56 +0200
Le 16 oct. 2006 à 12:36, Bernard Azancot a écrit :
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.
Avez-vous consulté le dictionnaire de l'application?
Je n'y trouve pas la commande "change".
Chez moi, il se passe quelquechose.
Avec le script originel l'historique est:
tell application "TextEdit"
change " cie " into " de "
"Erreur dans TextEdit : Le paramètre in est manquant pour change."
et, si je remplace into par in, l'historique devient:
tell application "TextEdit"
change " cie " in " de "
"Erreur dans TextEdit : Le paramètre into est manquant pour change."
Ce n'est pas trop surprenant pour une commande inconnue au bataillon ;-)
Yvan KOENIG (from FRANCE lundi 16 octobre 2006 13:04:55) _______________________________________________
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