OK, so I'm working on an apple script to replace Localizable (apple)
comments on the /* ... */ format to <!-- and -->
I got it working, but I'm using two commands because I couldn't figure the
grep out... can this be simplified with only one "replace" ?
pointers appreciated, script here:
*tell* *application* "BBEdit"
*tell* *front* *text window*
*replace* "(/\\*[^\\*]*\\*/)" using "<!--\\1-->" options ¬
{search mode:*grep*, case sensitive:*false*, starting at top:*true*}
*replace* "(/\\*|\\*/)" using "" options {search mode:*grep*, case sensitive
:*false*, starting at top:*true*}
*replace* "%@" using "%1$s" options {case sensitive:*false*, starting at top
:*true*}
*end* *tell*
*end* *tell*
--
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/65afd9cc-0a86-4821-b302-20b2948c3cdcn%40googlegroups.com.