Running in a mac mini 2012. Installed initially on Mojave, upgraded to Catalina and kept working. Just did a clean install in Catalina and reinstalled but does not work anymore. PowerKey is set to trigger a script with the content:
tell application "System Events"
shut down
end tell
Moreover, if I run the script from the Script Editor, it does work.
Nevermind... Seems to have been an issue with permissions. I copied the working helloPowerKeyAppleScript.scpt to a script name, replaced the content with what I wanted, and it now runs.
Running in a mac mini 2012. Installed initially on Mojave, upgraded to Catalina and kept working. Just did a clean install in Catalina and reinstalled but does not work anymore. PowerKey is set to trigger a script with the content:
tell application "System Events" shut down end tell
Moreover, if I run the script from the Script Editor, it does work.
I did enable PowerKey in Accessibility...