considering case

It should be very simple. But sorry, I am a real real beginner and french speaking people.
Is there some one who could help me with this simple script?

tell application “Microsoft Word”
(* *** “Convertisseur Tendzin to Wylie” Script *** *)
activate
set docRange to text object of active document
execute find (find object of docRange) find text “-n.” replace with “-na.” replace replace all

execute find (find object of docRange) find text "G" replace with "ng" replace replace all

end tell

So, where I have to write “considering case” and “end considering” in order to make this script case sensitive?
Thank you in advance
jm

Considering case is an applescript term, not a microsoft word term. As such you can’t use it with word. You have to find an equivalent when executing the find in Word. For example, in plain applescript you can do this…

set a to "word"
set b to "Word"

if a is equal to b then
	return true
else
	return false
end if
--> true
set a to "word"
set b to "Word"

considering case
	if a is equal to b then
		return true
	else
		return false
	end if
end considering
--> false

In Word you need to use this when executing a find…

Firts of all, thank you very much for this quick help.

Concerning this command “match case”, do you have a exemple of script?
Because I cannot figure how to transform my actual script in order to include the considering command, as you show me.
Sorry, I am a real dummie!

jm

tell application "Microsoft Word"
	(* *** "Convertisseur Tendzin to Wylie" Script *** *)
	activate
	set docRange to text object of active document
	set myFindRange to find object of docRange
	tell myFindRange
		set match case to true
		execute find find text "-n." replace with "-na." replace replace all
		execute find find text "G" replace with "ng" replace replace all
	end tell
end tell

Thank you very very much!! It works perfecty!!
all the best and long life to applescript
jm