Hey Folks,

For years I've had a bookmark in Safari for BBEdit's Expert Preferences, 
because I absolutely despise OSX's Help Viewer - and Safari runs 24/7 on my 
system.

It was prefaced with 'bbx;', so it was really easy to get to.

But.  I just got sick of the minimal fuss necessary to get there and wrote a 
script access it more easily with a keyboard shortcut from BBEdit.

I gave mine a keyboard shortcut of ⌘⌥⇧^E.

--
Best Regards,
Chris

-------------------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2015/05/07 01:05
# dMod: 2015/05/07 01:54
# Appl: Finder, Safari
# Task: Open BBEdit's Expert Preferences Help in Safari
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @Finder, @Safari, @Open, @Expert, @Preferences
-------------------------------------------------------------------------------------------

try
  
  set bbPath to alias ((path to application id "com.barebones.bbedit" as text) 
& "Contents:Resources:BBEdit Help:ExpertPreferences.html")
  tell application "Finder" to set _url to URL of bbPath
  tell application "Safari"
    activate
    make new document with properties {URL:_url}
  end tell
  
on error e number n
  set e to e & return & return & "Num: " & n
  if n ≠ -128 then
    try
      tell current application to button returned of ¬
        (display dialog e with title "ERROR!" buttons {"Copy Error Message", 
"Cancel", "OK"} ¬
          default button "OK" giving up after 30)
      if ddButton = "Copy" then set the clipboard to e
    end try
  end if
end try

-------------------------------------------------------------------------------------------

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

Reply via email to