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

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


  • Follow-Ups:
    • Re: TextEdit find/replace script
      • From: Jay Louvion <email@hidden>
References: 
 >TextEdit find/replace script (From: Bernard Azancot <email@hidden>)

  • Prev by Date: TextEdit find/replace script
  • Next by Date: Re: TextEdit find/replace script
  • Previous by thread: TextEdit find/replace script
  • Next by thread: Re: TextEdit find/replace script
  • Index(es):
    • Date
    • Thread