Jump to content

Open Apps and then hide windows

Recommended Posts



I'm currently experimenting with Workflows and wanted to setup a command to open all my commonly used applications at once and then hide most of them (they mostly need to be open for syncing or email alerts).


I used the Launch Apps / Files option and that opens everything up ok, but I can't hide certain windows with it.


Ideally I want to open Chrome, Mail, Evernote, Pocket, Reeder, Tweetbot, Colloquy, and iTunes but then hide Chrome, Mail, Evernote, Pocket, Reeder, and iTunes.


I'm guessing this is something that I'd need to do in AppleScript but have no idea where to start.



Link to comment

PR> I use an Applescript (below) to do this. Everything above that "System Events" line will be hidden, and apps launched below that line will not be. So in my example, everything but Safari is hidden.


on alfred_script(q)
tell application "Mail" to launch
tell application "Messages" to launch
tell application "Calendar" to launch
tell application "iTunes" to launch
tell application "Contacts" to activate
tell application "Reeder" to activate
activate application "Finder"
tell application "System Events" to keystroke "h" using {command down, option down}
tell application "Safari" to activate
end alfred_script
Link to comment

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...