techblog.willshouse.com/2011/01/14/applescript-to-unhide-restore-all-windows

Preview meta tags from the techblog.willshouse.com website.

Linked Hostnames

2

Search Engine Appearance

Google

https://techblog.willshouse.com/2011/01/14/applescript-to-unhide-restore-all-windows

Applescript: Unhide / Restore All Windows - Tech Blog (wh)

I got tried of accidentally hitting the CMD-H key and having a window disappear. So I wrote this little script and then assigned it to CMD-SHIFT-H to restore (unhide, unminimize) all hidden or minimized windows. Works on OS X 10.6, 10.7, 10.8, and 10.9 Snow Leopard, Lion, Mountain Lion, and Mavericks. Feel free to post improvements in the comments. I also think it would be cool to figure out the last window that was hidden, something like tell previous application and just restore that one. But this works for now. tell application "System Events" repeat with theApplication in application processes if visible of theApplication is not true then set visible of theApplication to true end if end repeat end tell You can also do this with an Application like Terminal.app: tell application "System Events" repeat with theApplication in application "Terminal" if visible of theApplication is not true then set visible of theApplication to true end if end repeat end tell Sometimes if you have “Minimized” instead of “Hidden” an application, it still won’t come back into the foreground when using the previous methods, so you can also try something like this: do shell script "open '/Applications/Utilities/Terminal.app'" This works by telling the application to “open” again which should also bring it to the front. f23337137c68c1811ca6945a24068349 Related Posts:How to send F2, F8, F9, F12 to a VNC Remote PC from Mac OS X



Bing

Applescript: Unhide / Restore All Windows - Tech Blog (wh)

https://techblog.willshouse.com/2011/01/14/applescript-to-unhide-restore-all-windows

I got tried of accidentally hitting the CMD-H key and having a window disappear. So I wrote this little script and then assigned it to CMD-SHIFT-H to restore (unhide, unminimize) all hidden or minimized windows. Works on OS X 10.6, 10.7, 10.8, and 10.9 Snow Leopard, Lion, Mountain Lion, and Mavericks. Feel free to post improvements in the comments. I also think it would be cool to figure out the last window that was hidden, something like tell previous application and just restore that one. But this works for now. tell application "System Events" repeat with theApplication in application processes if visible of theApplication is not true then set visible of theApplication to true end if end repeat end tell You can also do this with an Application like Terminal.app: tell application "System Events" repeat with theApplication in application "Terminal" if visible of theApplication is not true then set visible of theApplication to true end if end repeat end tell Sometimes if you have “Minimized” instead of “Hidden” an application, it still won’t come back into the foreground when using the previous methods, so you can also try something like this: do shell script "open '/Applications/Utilities/Terminal.app'" This works by telling the application to “open” again which should also bring it to the front. f23337137c68c1811ca6945a24068349 Related Posts:How to send F2, F8, F9, F12 to a VNC Remote PC from Mac OS X



DuckDuckGo

https://techblog.willshouse.com/2011/01/14/applescript-to-unhide-restore-all-windows

Applescript: Unhide / Restore All Windows - Tech Blog (wh)

I got tried of accidentally hitting the CMD-H key and having a window disappear. So I wrote this little script and then assigned it to CMD-SHIFT-H to restore (unhide, unminimize) all hidden or minimized windows. Works on OS X 10.6, 10.7, 10.8, and 10.9 Snow Leopard, Lion, Mountain Lion, and Mavericks. Feel free to post improvements in the comments. I also think it would be cool to figure out the last window that was hidden, something like tell previous application and just restore that one. But this works for now. tell application "System Events" repeat with theApplication in application processes if visible of theApplication is not true then set visible of theApplication to true end if end repeat end tell You can also do this with an Application like Terminal.app: tell application "System Events" repeat with theApplication in application "Terminal" if visible of theApplication is not true then set visible of theApplication to true end if end repeat end tell Sometimes if you have “Minimized” instead of “Hidden” an application, it still won’t come back into the foreground when using the previous methods, so you can also try something like this: do shell script "open '/Applications/Utilities/Terminal.app'" This works by telling the application to “open” again which should also bring it to the front. f23337137c68c1811ca6945a24068349 Related Posts:How to send F2, F8, F9, F12 to a VNC Remote PC from Mac OS X

  • General Meta Tags

    8
    • title
      Applescript: Unhide / Restore All Windows - Tech Blog (wh)
    • X-UA-Compatible
      IE=edge,chrome=1
    • charset
      UTF-8
    • viewport
      width=device-width, initial-scale=1.0
    • robots
      index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1
  • Open Graph Meta Tags

    6
    • US country flagog:locale
      en_US
    • og:type
      article
    • og:title
      Applescript: Unhide / Restore All Windows - Tech Blog (wh)
    • og:description
      I got tried of accidentally hitting the CMD-H key and having a window disappear. So I wrote this little script and then assigned it to CMD-SHIFT-H to restore (unhide, unminimize) all hidden or minimized windows. Works on OS X 10.6, 10.7, 10.8, and 10.9 Snow Leopard, Lion, Mountain Lion, and Mavericks. Feel free to post improvements in the comments. I also think it would be cool to figure out the last window that was hidden, something like tell previous application and just restore that one. But this works for now. tell application "System Events" repeat with theApplication in application processes if visible of theApplication is not true then set visible of theApplication to true end if end repeat end tell You can also do this with an Application like Terminal.app: tell application "System Events" repeat with theApplication in application "Terminal" if visible of theApplication is not true then set visible of theApplication to true end if end repeat end tell Sometimes if you have “Minimized” instead of “Hidden” an application, it still won’t come back into the foreground when using the previous methods, so you can also try something like this: do shell script "open '/Applications/Utilities/Terminal.app'" This works by telling the application to “open” again which should also bring it to the front. f23337137c68c1811ca6945a24068349 Related Posts:How to send F2, F8, F9, F12 to a VNC Remote PC from Mac OS X
    • og:url
      https://techblog.willshouse.com/2011/01/14/applescript-to-unhide-restore-all-windows/
  • Twitter Meta Tags

    4
    • twitter:label1
      Written by
    • twitter:data1
      Will
    • twitter:label2
      Est. reading time
    • twitter:data2
      1 minute
  • Link Tags

    5
    • canonical
      https://techblog.willshouse.com/2011/01/14/applescript-to-unhide-restore-all-windows/
    • shortcut icon
      https://techblog.willshouse.com/wp-content/themes/willshouse/img/favicon.ico
    • stylesheet
      https://techblog.willshouse.com/wp-includes/css/dist/block-library/style.min.css?ver=6.8.2
    • stylesheet
      https://techblog.willshouse.com/wp-content/plugins/wordpress-popular-posts/assets/css/wpp.css?ver=7.3.3
    • stylesheet
      https://techblog.willshouse.com/wp-content/themes/willshouse/css/main.css?ver=96249

Links

80