On 05/15/2017, at 08:00, Geoff Hicks <[email protected]
<mailto:[email protected]>> wrote:
> Any pointers for examples of this?
Hey Geoff,
I'm not completely clear on what you need to do.
Are you needing to do a document-by-document replacement, or are you needing to
do an en mass replacement of many documents at once?
Here's some basic code for working with the front document:
------------------------------------------------------------------------------
tell application "BBEdit"
tell front text document
set docPath to POSIX path of (get its file)
replace "^(Text to Find)" using ("\\1 " & docPath) options {search
mode:grep, case sensitive:false, starting at top:true}
end tell
end tell
------------------------------------------------------------------------------
If you need to do something more complex then please provide a more complete
description of the workflow.
--
Best Regards,
Chris
--
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.