On May 18, 2016, at 15:20, Steve Piercy <steve.piercy....@gmail.com> wrote: > Another option is the BBEdit reference "Searching with Grep", which I > bookmarked and view in a web browser because the Apple Help viewer has a > terrible UI. ______________________________________________________________________
Hey Steve, Good idea, although not everyone will place BBEdit in the /Applications folder. Here's how to script it and let the OSX find the app for you. -- Best Regards, Chris ------------------------------------------------------------------------------------------- # Auth: Christopher Stone # dCre: 2016/05/18 17:08 # dMod: 2016/05/18 17:13 # Appl: BBEdit & Safari # Task: Open BBEdit's “Searching with Grep” Chapter in Safari # Tags: @Applescript, @Script, @, BBEdit, @Safari, @Open, @Help ------------------------------------------------------------------------------------------- set grepHelp to "/Contents/Resources/BBEdit%20Help/index_grep.htm" set shCMD to "mdfind -onlyin /Applications/ 'kMDItemCFBundleIdentifier == \"com.barebones.bbedit\"'" set bbeditApp to do shell script shCMD set grepHelpPath to "file://" & bbeditApp & grepHelp tell application "Safari" activate make new document with properties {URL:grepHelpPath} # My preferred window location and size – change to suit. set bounds of front window to {228, 23, 1542, 1196} end tell ------------------------------------------------------------------------------------------- -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "supp...@barebones.com" 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 bbedit+unsubscr...@googlegroups.com. To post to this group, send email to bbedit@googlegroups.com.