I'm trying to run the following command continuously:
osascript -e 'tell application "System Events" to set visible of every application process to false'
Is there some sort of command with the following methodology?
repeat "enter command here"
If not, how could I do this?
Best Answer
With a simple
while
loop,sleep
ing in between:If you have Homebrew, install
watch
(brew install watch
), and then call:… to run it every second.