Skip to content

Instantly share code, notes, and snippets.

@confluencepoint
Created December 14, 2021 12:10
Show Gist options
  • Save confluencepoint/d4f3f7ca7045b6042c431a578f6f767b to your computer and use it in GitHub Desktop.
Save confluencepoint/d4f3f7ca7045b6042c431a578f6f767b to your computer and use it in GitHub Desktop.
function applicationWatcher(appName, eventType, appObject)
if (eventType == hs.application.watcher.launched) then
if (appName == "Music") then
appObject:kill()
end
end
end
appWatcher = hs.application.watcher.new(applicationWatcher)
appWatcher:start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment