iam trying to figure out how the FindChangeByList works... especially these things and please feel free to add yours:
((1)) how do i tell the script to remove something what has been found:
//removes accidental duplicate "end of story" marker after last paragraph
grep {findWhat:"\r\Z"} {changeTo:""}
{changeTo:""} empty quotes doesnt seem to work
HOW DO I TELL THE SCRIPT "REMOVE WHAT YOU JUST FOUND"
btw. this exact query works perfectlly when executed in InDesign Find/Change dialog box with empty CHANGE TO
quite a few GREP queries which work perfectlly when executed in InDesign Find/Change Dialog Box when retyped into script and ran from script doesnt work, return unexpected errors or just dont do anything at all
few examples of queries which work smooth when executed in InDesign GREP Dialog Box but when retyped into the script they do unexpected chaos or dont work at all:
//multiple spaces into single space
FIND [~m~>~f~|~S~s~<~/~.~3~4~% ]{2,} CHANGE TO \s
//prevent last to words of paragraph to separate - eliminates single word on last line of paragraph
FIND (\w)\s(\w+[[

unct:]]$)
CHANGE TO \s
are there any general rules how the InDesign and the script syntax differ... any rules how to alter syntax before using the same queries between InDesign and the script
I suspect that the queries in the script should use TEXT equivalents of GREP wildcrads (eg. ^s instead of ~s for nonbreaking space) but the problem is that lot of usefull GREP wildcards doesnt have TEXT equivalent
(for example $ for End of Paragraph Location or [[

unct:]] POSIX)
please help the automation of the script is very promising UNFORTUNATELLY I cannot make the script behave just exactly same as the InDesign Find/Change dialog box...