OK. Here's an Applescript:

tell application "BBEdit"
        set bbeditVersion to version

        replace "<meta name=\"generator\" content=\"BBEdit ([0-9\\.]+)\" />" 
using "<meta name=\"generator\" content=\"BBEdit " & bbeditVersion & "\" />" 
searching in text 1 of text document 1 options {search mode:grep, starting at 
top:false, wrap around:true, backwards:false, case sensitive:false, match 
words:false, extend selection:false}

end tell

On Feb 16, 2013, at 11:58 AM, Lewis Kirk wrote:

> Here's an idea: What if on update of an html document, the <meta 
> name="generator" content="BBEdit 8.2.4" /> would update the version to what I 
> am using now? I know this is not particularly important and it could be done 
> a number of ways with scripts, etc., but if I am giving BBEdit credit for 
> being a great program, couldn't it do this too?
> 
> -- 
> -- 
> You received this message because you are subscribed to the 
> "BBEdit Talk" discussion group on Google Groups.
> To post to this group, send email to bbedit@googlegroups.com
> To unsubscribe from this group, send email to
> bbedit+unsubscr...@googlegroups.com
> For more options, visit this group at
> <http://groups.google.com/group/bbedit?hl=en>
> If you have a feature request or would like to report a problem, 
> please email "supp...@barebones.com" 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 bbedit+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> 

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" 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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.

Reply via email to