Skip to content

Instantly share code, notes, and snippets.



Last active Jun 19, 2020
What would you like to do?
Sample .bunch file for
# Comments start with a hash symbol, blank lines are ignored
# Use @@ to hide all visible apps. Usually used at the top of the file
# before launching the rest of the bunch
# Apps to launch start at the beginning of a line, no
# need to quote or escape.
# Apps launched by a Bunch can be quit when the Bunch is closed
# Add a percent symbol to ignore it when quitting (keep it running)
# Include a line starting with a dash to open specific
# files in the app
# If the first file listed is "XX", all open windows
# for the app will be closed first
- XX
- ~/Desktop
- ~/Documents
# Commands are surrounded by parenthesis. Only commands Bunch
# recognizes will be executed
# ([hide|show] dock) -> Turn Dock autohiding on or off
# ([hide|show] desktop) -> Show or hide desktop icons
# (dnd [on|off]) -> Turn Do Not Disturb on or off
(show dock)
# Use a URL instead of an app to open it in your
# default browser
# You can also use URL schemes from other apps
# Start a line with an exclamation point to quit that app if it's running
# Start a line with an asterisk (*) to execute as applescript
* say "Bunch launched"
## Or run a shell script with a dollar sign ($)
## and set environment variables with "file" markers
# $ /usr/local/scripts/ arg1 arg2
# - KEY=value
## Or an Automator Workflow with an ampersand (&)
## File markers will set variables for the workflow
# & ~/Documents/My Workflow.workflow
# - key=val
# Start a line with @ to "focus" that app (hide others)
# Focus commands should be the last item in the Bunch
@Marked 2
# See the documentation for more info:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.