Sample Header Ad - 728x90

Miniaturise all windows with AppleScript

3 votes
2 answers
991 views
tell application "System Events" set mywindows to windows of (processes where background only is false) repeat with theItem in windows of (processes where background only is false) set miniaturized of theItem to true end repeat end tell I get error "System Events got an error: Can’t set miniaturized of UI element to any." number -10006 from miniaturized of UI element to any
Asked by Zanode (31 rep)
Jul 17, 2020, 06:32 PM
Last activity: Mar 4, 2024, 05:31 PM