Felix Posted February 10, 2013 Share Posted February 10, 2013 I was wondering if I could use a workflow to start a bunch of apps that I normally have running but don’t want to open at startup because it slows things down too much. Is there a way to launch the apps hidden? (Of course, it could be done with a script, but I’ve never done any scripting, so that would take me a lot longer than using the options in Alfred menus.) Link to comment
Rivers Posted September 17, 2013 Share Posted September 17, 2013 i would like to know this also Link to comment
jdfwarrior Posted September 17, 2013 Share Posted September 17, 2013 I was wondering if I could use a workflow to start a bunch of apps that I normally have running but don’t want to open at startup because it slows things down too much. Is there a way to launch the apps hidden? (Of course, it could be done with a script, but I’ve never done any scripting, so that would take me a lot longer than using the options in Alfred menus.) i would like to know this also I haven't tested this but, it appears that there is an option on the "open" terminal command that will launch apps either in the background OR hidden. ::open -- Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-b <bundle identifier>] [-a <application>] [filenames] [--args arguments] Help: Open opens files from a shell. By default, opens each file using the default application for that file. If the file is in the form of a URL, the file will be opened as a URL. Options: -a Opens with the specified application. -b Opens with the specified application bundle identifier. -e Opens with TextEdit. -t Opens with default text editor. -f Reads input from standard input and opens with TextEdit. -F --fresh Launches the app fresh, that is, without restoring windows. Saved persistent state is lost, excluding Untitled documents. -R, --reveal Selects in the Finder instead of opening. -W, --wait-apps Blocks until the used applications are closed (even if they were already running). --args All remaining arguments are passed in argv to the application's main() function instead of opened. -n, --new Open a new instance of the application even if one is already running. -j, --hide Launches the app hidden. -g, --background Does not bring the application to the foreground. -h, --header Searches header file locations for headers matching the given filenames, and opens them. These are the command line switches for the open command.. Given this, it appears that you could create a workflow with a Run Script item and then tell it each application to launch using "open" and passing either the -j or -g option and launch the apps in their desired state. Exmaple: open -j /Applications/TextEdit.app gandalfsaxe 1 Link to comment
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