Thank you Kendall for giving me a simple solution.

Thank you Patrick for going the extra mile and giving explanations. I've 
been using BBEdit for 5+ years now and always have it open (and Yojimbo). 

Thank you Chris for the excellent Applescript script.

You all made my day. :)



On Wednesday, June 27, 2012 9:37:22 PM UTC-6, Christopher Stone wrote:
>
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to