Within a Bunch file you simply list the apps you want it to launch, one per line. For example, in “Comms.bunch”:
Messages Slack Mail Twitter
You can add additional lines to perform actions like opening files.
You can additionally have an app open specific documents, if the app supports that. After the app name, simply add one or more documents on lines that begin with a dash. For example, to have Numbers open two specific spreadsheets:
Numbers - ~/Documents/job 1.numbers - ~/Documents/job 2.numbers
Paths to documents can use a tilde
~to represent the home directory. Spaces are fine, no quotes or escaping needed.
You may want to close all open windows before opening new files. To do that, use XX
Numbers - XX - ~/Documents/job 1.numbers
You can also specify a file as a URL to have Bunch open it in whatever app is defined as the default handler for it. For example, if you put the following on its own line, Bunch would open TaskPaper** with the file (note that spaces are replaced with
* This assumes TaskPaper is installed.
If you include a file line containing only “XX”, then all windows for the app will be closed. This can be included before lines that open new files/windows to start with a clean slate.
Finder - XX - ~/Desktop/
This will only work if the app responds to the AppleScript command
close every window.Most apps do, but there are exceptions. A warning dialog will be displayed if the command fails and you should remove the instruction from your Bunch.
If you use “@@” alone on a line, Bunch will hide all visible apps. (Menu bar apps like Dash or TextExpander may not hide properly.) This is ideal for use at the very beginning of a Bunch, giving you a clean slate for a new set of apps.
You can also append an underscore after any single app name and Bunch will attempt to hide it after launching. (This can be flaky depending on how long the app takes to launch.)
If you start an app line with an
@ symbol, it will attempt to focus that app. This should be run as the last line of the file, after all other lines have run. Make sure the app you want to focus has already been launched.
OmniFocus MultiMarkdown Composer @OmniFocus
Everything is launched in the order listed in the Bunch file. Some apps take longer than others to launch or open a file, so execution will continue in the background after the inital launch of the app.
Put an exclamation point before the app name to quit that app if it’s open. This works on apps that respond to the AppleScript “quit” command, which is most apps. For example, to quit Mail and launch MailMate instead:
You can also have apps launch when closing the Bunch.