I'm using macos Catalina and I'm trying to create a script to Hide All Windows in Automator. I created the script and i want to use it in 2 cases :
1. on a hot corner
2. using F19
When i run the app directly the script works, it hides all the windows but i tried to add a shortcut on the keyboard it doesn't work at all.
Regarding the hot corner i don't know how to put the customer script.
Any tips on this ? Thank you