I would like to open a link posted in Slack with my work browser (Firefox).
spoon.SpoonInstall.use_syncinstall = true
Install=spoon.SpoonInstall
function appID(app)
return hs.application.infoForBundlePath(app)['CFBundleIdentifier']
end
FirefoxBrowser = appID('/Applications/Firefox.app')
SafariBrowser = appID('/Applications/Safari.app')
Slack = appID('/Applications/Slack.app')
DefaultBrowser = SafariBrowser
WorkBrowser = FirefoxBrowser
Install:andUse("URLDispatcher",
{
config = {
url_patterns = {
},
default_handler = SafariBrowser
},
start = true,
-- Enable debug logging if you get unexpected behavior
-- loglevel = 'debug'
}