On Jun 27, 2012, at 16:53, lumaflux wrote: > I have documents that I need to remove the white space between the first and > second line and add a comma. ______________________________________________________________________
Hey There, If you want to automate that on a per document basis you can use something like this: tell application "BBEdit" tell text of front text window replace "^(.+?)\\r(.+?)$" using "\\1,\\2" options {search mode:grep, case sensitive:false, starting at top:true} end tell end tell -- Best Regards, Chris -- 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>