Jump to content

Hide/Show windows


Recommended Posts

Posted

Hide / Show Window | Alfred Workflow

A streamlined workflow that allows you to hide active windows, hide all windows except the frontmost one, and show all previously hidden windows.

Review code on my GitHub.

To download it, click here.

 

Hide all active windows (hide)

hide.png?raw=true

 

Hide all active windows in all.

Keyword: hide

 

Hide all active windows except the frontmost one

hide-option.png?raw=true

 

Hide all active windows in all desktops except the frontmost one.

Keyword: hide + ⌥ (option)

 

Show all hidden windows (show)

show.png?raw=true

 

Show all active windows in all.

Keyword: show

Posted

Welcome @Pedro Vázquez,

 

Thank you for sharing. Some suggestions:

  • As the Run NSAppleScript suggests, you should in general use instead a Run Script Action with language set to /usr/bin/osascript (AS) (don’t use the on alfred_script(q) in that case).
  • Instead of Hotkeys that connect to Keywords, it would make more sense to have Hotkeys which connect directly to the scripts, for faster triggering.
  • Versions shouldn’t have the v, just the number. See the top of the editor, it reads vv1.0.0.
  • Workflows should have a bundle identifier. In your case it would make sense something like com.github.vanstrouble.alfred.hideshowwindows.

If anything is unclear, feel free to ask.

Posted
20 hours ago, vitor said:

Welcome @Pedro Vázquez,

 

Thank you for sharing. Some suggestions:

  • As the Run NSAppleScript suggests, you should in general use instead a Run Script Action with language set to /usr/bin/osascript (AS) (don’t use the on alfred_script(q) in that case).
  • Instead of Hotkeys that connect to Keywords, it would make more sense to have Hotkeys which connect directly to the scripts, for faster triggering.
  • Versions shouldn’t have the v, just the number. See the top of the editor, it reads vv1.0.0.
  • Workflows should have a bundle identifier. In your case it would make sense something like com.github.vanstrouble.alfred.hideshowwindows.

If anything is unclear, feel free to ask.

 

Hi @vitor,

 

Thank you so much for your feedback!

The new version has all the suggestions you mentioned.  

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...