I answer myself.

A call to the AppleScript library of BBEdit sometimes returns the number of 
hits found, this is the case with replace.

process lines containing text 1 of text document 1 matching string "^'" 
output options {deleting matched lines:true} with matching with grep

But with "process lines containing text" for example, this is not the case 
and it is better to avoid testing the returned value. It must be somewhere 
but not in the global property « result ». If someone has a solution, I'm 
interested.

Thanks.

Le mardi 20 septembre 2022 à 14:55:34 UTC+2, Lionel a écrit :

> Hi,
>
> I'm using AppleScript to do some text transformations in BBEdit. For 
> exemple :
>
> replace "\\s+&\\s+_\\s+" using " \\& " options {search mode:grep, starting 
> at top:true}
>
> When BBEdit is used with AppleScript, it does not post notifications, 
> that's why I'd like to get the numbers of occurrences found.
>
> result = {replace ...} doesn't work. Is there a way to do that ?
>
> Thanks

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/46350874-b3b0-4741-a902-fa746863060bn%40googlegroups.com.

Reply via email to