On Saturday, 21 October 2017 17:26:17 UTC+1, Christopher Stone wrote:
>
>
> I've used this sort of syntax for some years now:
>
>
> ------------------------------------------------------------------------------
> *tell* *application* "BBEdit"
>     *tell* *front* *text window's* *text*
>         *replace* "one" using "zero" options {search mode:*grep*, case 
> sensitive:*false*, starting at top:*true*}
>     *end* *tell*
> *end* *tell*
>
> ------------------------------------------------------------------------------
>
> It still works perfectly in BBEdit 12.
>

Thanks Chris.

The full syntax I'm now using is:

*set* grep_result *to* (*find* "my regex here" searching in *document* *of* 
*text 
window* docNameAsString options {search mode:*grep*, wrap around:*false*, 
backwards:*false*, case sensitive:*true*, match words:*false*, extend 
selection:*true*, returning results:*true*}) 


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.


Thanks for replying.


David


 

-- 
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