Created
December 14, 2021 12:10
-
-
Save confluencepoint/d4f3f7ca7045b6042c431a578f6f767b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Quelle: https://stackoverflow.com/questions/68594282/hammerspoon-hs-applicationkill-not-callable