On Jan 11, 2017, at 14:47, BenJ <[email protected] 
<mailto:[email protected]>> wrote:
> Thanks for this - however, I don't want to actually *perform* replacements 
> from scripts, I just want to pre-populate the find window with search 
> patterns … 


Hey Ben,

That's easy with AppleScript:

--------------------------------
tell application "BBEdit"
   tell find window
      set text 1 to "Find Pattern"
      set text 2 to "Replace Pattern"
   end tell
end tell
--------------------------------

The only caveat is that the Find window MUST BE OPEN when you run the script.

--
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.

Reply via email to