Hide all windows Script

Discussion in 'Mac Programming' started by TheGdog, Jul 18, 2015.

  1. TheGdog macrumors 6502

    TheGdog

    Joined:
    Sep 4, 2010
    Location:
    North Carolina, USA
    #1
    Hopefully this is the right place to ask this. I use a program called unDock. When I disconnect my work computer from the thunderbolt display, I hit a shortcut and it ejects all drives. It also can run scripts.

    I need a script to hide all windows. Since having 10-15 windows open on a 27" screen and then all of it ending up on a 13" screen is messy. I want a clear desktop when I disconnect.

    I've seen a few that minimize all windows, but none to hide all windows. (not close). Any ideas?
     
  2. kryten2 macrumors 6502a

    Joined:
    Mar 17, 2012
    Location:
    Belgium
    #2
    Perhaps setting the visible property of a window to false might be useful in your case.
     

Share This Page