On 10/21/2017, at 13:54, David Glencoe <[email protected] 
<mailto:[email protected]>> wrote:
> That works just fine (it's inside a tell BBEdit block). In version 11 I was 
> using text window 1 instead, which also worked fine. I'm not clear why I ran 
> into problems with that in version 12, but at least I have code that works.


Hey David,

I never use the searching in syntax, because I find it much more difficult to 
read than using a tell-block.

Even so.  Some testing shows that your use-case is the only one of the 
following that fails:

------------------------------------------------------------------------------

tell application "BBEdit"
    tell front text window
        set findRec to find "Your-RegEx" options {search mode:grep, case 
sensitive:false, starting at top:true}
    end tell
end tell

# ••••• This is the only one that fails •••••
tell application "BBEdit"
    set findRec to find "Your-RegEx" searching in front text window options 
{search mode:grep, case sensitive:false, starting at top:true}
end tell

------------------------------------------------------------------------------

tell application "BBEdit"
    tell front text window's text
        set findRec to find "Your-RegEx" options {search mode:grep, case 
sensitive:false, starting at top:true}
    end tell
end tell

tell application "BBEdit"
    set findRec to find "Your-RegEx" searching in front text window's text 
options {search mode:grep, case sensitive:false, starting at top:true}
end tell

------------------------------------------------------------------------------

tell application "BBEdit"
    tell front text window's document
        set findRec to find "Your-RegEx" options {search mode:grep, case 
sensitive:false, starting at top:true}
    end tell
end tell

tell application "BBEdit"
    set findRec to find "Your-RegEx" searching in front text window's document 
options {search mode:grep, case sensitive:false, starting at top:true}
end tell

------------------------------------------------------------------------------

And that seems like a bug.

Why don't you write it up and submit it to the support address.

--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to