>>62
tell application "CotEditor" to if exists front document then tell front document to replace for "a" to "\\0" with all and RE

2.5.7ならこれでいける

$0じゃなくて、
"半角バクスラ半角バクスラ0"