- Install Hammerspoon
- Install SpoonInstall (unzip and click to install)
- Move the contents of
appOrWebDialog.lua
(question dialog version) oralwaysApp.lua
(default to app version) to~/.hammerspoon/init.lua
- Reload Hammerspoon configuration if you already started it.
- Set Hammerspoon as default web browser in macOS preferences -> General
- Figure out the App Bundle Identifier. Right click "Show Package Contents" on Application and open
Contents/Info.plist
inside. Find the Bundle Identifier in the plist file. - Add a new line to
url_patterns
:{ "https?://www.website.com", nil, hs.fnutils.partial(webOrDesktop, "Bundle Identifier here", "App name here") },
- Reload Hammerspoon configuration