On 10/20/2018, at 11:31, John Springer <[email protected] 
<mailto:[email protected]>> wrote:
> Just thought maybe I could do it with AppleScript, but apparently BBEdit has 
> no entry in the script dictionary for "search in selection".  It's the only 
> option not there.  :-(


Hey John,

You can search/replace in the only the selection with AppleScript:

----------------------------------------------------------------
tell application "BBEdit"
    tell selection
        replace ".+" using "••••" options {search mode:grep}
    end tell
end tell
----------------------------------------------------------------

You cannot (un)set the checkbox in the Find dialog – at least not without an 
AppleScript-Runner utility like FastScripts or Keyboard Maestro.

(BBEdit's own script menu doesn’t like UI-Scripting BBEdit.)

--
Best Regards,
Chris

-- 
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 to the group.
Follow @bbedit on Twitter: <https://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