search_replaceSyntaxeSearchReplace(theString, oldChar, newChar) Recherche une chaine de caractères dans un texte et la remplace par une autre. Les paramètres et le résultat sont au format texte. ExempleSearchReplace("chat et chien", "ch", "r")) ---> "rat et rien" Scripton SearchReplace(theString, oldChar, newChar) set AppleScript's text item delimiters to oldChar set TheList to text items of theString set AppleScript's text item delimiters to newChar set theString to TheList as text return theString end SearchReplace
|