Greetings, folks!

I want BBEdit to return the number of times a text string appears in the 
files in a directory. The following works to replace any such text:

tell application "BBEdit" to replace "text1" using "text2" searching in 
{file "path:to:directory:"}

But I can’t figure out how to get the number of text strings found. The 
following always returns a count of “1” (there are hundreds):

tell application "BBEdit" to return count (find "text1" searching in {file 
"path:to:directory:"} options {showing results:false}) -- the script errors 
out without the “options {showing results:false}”; it also errors out with 
“options {showing results:true}”. 

Thoughts?

Blessings, and thank you!

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/6d79d3d7-2601-4de2-90f9-a1f7d7c911ffn%40googlegroups.com.

Reply via email to