Pedro Vázquez Posted November 22 Posted November 22 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 all active windows in all. Keyword: hide Hide all active windows except the frontmost one Hide all active windows in all desktops except the frontmost one. Keyword: hide + ⌥ (option) Show all hidden windows (show) Show all active windows in all. Keyword: show
vitor Posted November 22 Posted November 22 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. Pedro Vázquez 1
Pedro Vázquez Posted November 23 Author Posted November 23 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now