You can do this with an Automator Service and the global Keyboard Shortcuts system preferences. Check out the Stack Exchange article below.
https://apple.stackexchange.com/questions/175215/how-do-i-assign-a-keyboard-shortcut-to-an-applescript-i-wrote
Open Automator and create a new Service. Set the input to No Input. Add a Run AppleScript action with this AppleScript.
tell application "BBEdit"
activate
open scratchpad document
set the index of the window of scratchpad document to 1
end tell
Save that as as "Scratchpad.workflow" or something similar.
Now, go into System Preferences and open Keyboard and the Shortcuts tab. Select Services and scroll down to General. Your new service should be listed there. Assign it a keyboard shortcut. I assigned it to Command-` and it does seem to work.
[fletcher]
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or would like to report a problem, please email
> "
sup...@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+un...@googlegroups.com.
> To post to this group, send email to
bbe...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/bbedit.