After upgrading to version 12 I discovered that an AppleScript that had 
been running successfully while using BBEdit 11 no longer worked properly.

The script concerned processes a batch of text files and applies several 
regex searches, and each one used:

searching in *document* *of* *text window* 1


while specifying the grep for BBEdit to use. This fails in BBEdit 12 (event 
not handled). I'm not sure yet whether this is because I could have written 
the script a little more robustly, and the above expression can be made to 
work, or because of some more fundamental change in version 12.


I found that I could get my script to work simply my specifying the 
document name as a text string:


searching in *document* *of* *text window* docNameAsString


where docNameAsString is the document name. 


I need to investigate further what changed in version 12 and exactly why my 
solution is appropriate. In the meantime, I'm posting this here in the off 
chance that it helps someone else.



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