Well, putting aside that in the example, the ‘match case’ setting is set on a separate line… While I don’t think there is a ‘clear all’ per se, you can set multiple properties with a single command.
set myfind to find object of text object of active document
set properties of myfind to {match case:false, match whole word:false, match wildcards:false}
execute find myfind find text "he" replace with "THE" replace replace all
Additionally, you can assign the properties to a variable and then use that to set the properties for the find.
set myfind to find object of text object of active document
-- create banks of properties, e.g. all false, all true, or a mix
set pr_allFalse to {match case:false, match whole word:false, match wildcards:false}
set pr_allTrue to {match case:true, match whole word:true, match wildcards:true}
set pr_caseF_wholeF_wildcardsT to {match case:false, match whole word:false, match wildcards:true}
-- use bank 1 (all false)
set properties of myfind to pr_allFalse
execute find myfind find text "he" replace with "THE" replace replace all
-- use bank 2 (all true)
set properties of myfind to pr_allTrue
execute find myfind find text "he" replace with "THE" replace replace all
-- use bank 3 (mix)
set properties of myfind to pr_caseF_wholeF_wildcardsT
execute find myfind find text "he" replace with "THE" replace replace all
And of course, you can use this to review what properties you’d like to set. Here is a subset of the properties:
properties of myfind
[format]{class:find, forward:true, font object:font object of find id «class ÅÌíÿ» of text object of active document of
application “Microsoft Word”, found:false, match all word forms:false, match case:true, match wildcards:false,
match sounds like:false, match whole word:false, match fuzzy:false, match byte:false,
paragraph format:paragraph format of find id «class ÅÌíÿ» of text object of active document of application “Microsoft Word”,
style:missing value, content:“he”, wrap:find stop, format:false}[/format]