Re: Case sensitive find/replace
Re: Case sensitive find/replace
- Subject: Re: Case sensitive find/replace
- From: Yvan KOENIG <email@hidden>
- Date: Tue, 25 Jul 2006 10:56:53 +0200
Le 25 juil. 2006 à 10:46, Jan Bultereys a écrit :
Thanks to all persons who gave there input...
Just a question, how would you implement multiple words, in the script
below? I want to replace multiple word with this script.
eg: change Formaat to Format
eg: change formaat to format
eg: change Size to Groote
eg: change size to groote
eg: change color to kleur
eg: change Color to Kleur
...
Hello
something like that may do the trick:
set l1 to {"Formaat","formaat","Size","size","Color","color"}
set l2 to {"Format","format","Groote","groote","Kleur","kleur"}
repeat with i from 1 to count of l1
my searchReplace(l1's item i,l2's item i)
end repeat
on searchReplace(b,a)
--replace word b(efore) by word a(fter)
end searchReplace
Yvan KOENIG _______________________________________________
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