---
title: Bunch gets scheduling (and lots more)
date: 2021-02-02 08:00
slug: bunch-gets-scheduling-and-lots-more
categories:
- Blog
tags:
- bunch
- beta
- notifications
- sleep
- snippet
- automation
---

![hourglass and Bunch logo](https://brettterpstra.com/uploads/2021/01/scheduledbunches-rb.jpg)

Are you ready? I kinda went down a rabbit hole with Bunch this last week. It's a lot. Because this release is so big, I'm releasing it as a beta first. All of the documentation for the new version is at [brettterpstra.com/bunch-beta/docs](https://brettterpstra.com/bunch-beta/docs/), and the download link can be found at [brettterpstra.com/bunch-beta/download](https://brettterpstra.com/bunch-beta/download/).

The documentation for everything here is fully updated (and expanded, as part of the aforementioned rabbit hole), and all of the pertinent pages are linked from [the changelog](/bunch-beta/docs/changelog/). You can just skip there if you like.

First, the blame for this whole development cycle belongs partially to one Jake Bernstein. He had a couple ideas that I thought were pretty clever, and it was a slippery slope from there. Scheduled Bunches and Spotlight searches were mostly his fault. I'm far from blameless in this, but just I want him to share in the responsibility. Well, really I just wanted to give him credit. 

### Frontmatter

The first big thing is that I've introduced frontmatter. It's YAML-esque formatting that lets you define attributes and variables at the top of your Bunch file. This means additional settings without further complicating the syntax. Just nice, readable keys and values.

	---
	title: 👍🏻My Cool Bunch
	startup: true
	---

![emojititles.jpg](https://brettterpstra.com/uploads/2021/01/emojititles.jpg)

First benefit: you can use a `title` key to define a display name that's different from the filename. Which, of course, means that you can use emojis in your menu titles. A vanity feature, but I really like it. 

You can define whether a Bunch launches at startup with the `startup` key, as an alternative to using [startup scripts](/bunch-beta/docs/bunch-files/startup-scripts).

You can also define arbitrary keys and values that can then be referenced as variables in your snippets. 

I know what you're asking yourself at this point. "Did he really stop with just having static data at the top of a file?" No, of course not. Frontmatter can also be [dynamically loaded from external files or shell script output](/bunch-beta/docs/bunch-files/frontmatter.html#dynamicfrontmatter).

So that's nice and all, you say, but is there any _real_ benefit to having frontmatter?

<!--more-->

### Scheduling

This leads to the second big deal: [scheduling](/bunch-beta/docs/bunch-files/scheduling-bunches). In the frontmatter, you can define keys like `open at` and `close after` to open and close bunches at specific times, or on specific days, or even at repeating intervals. Have Bunches launch in the morning, close in the evening, or have a special Friday 9pm Bunch, for whatever nefarious things you do to kick off the weekend. Have a "Social" Bunch that only opens at set hours and automatically closes when your social media time is up[^strict]. You can even use `open every` to have Bunches that automatically re-open apps at specific intervals.

[^strict]: This is theoretical. I would abhor any app that tried to tell me what to do and when to do it, even if I programmed it to do so. I only accept suggestions from my apps, not demands.

All of the keys work with natural language syntax. You can just write `open at: 8:30am` or `open on: Friday 3pm`. Interval keys take formats like `open every: 1h30m`.

The `close after` one has a nice ramification. You can use `%` before application names in the Bunch to avoid quitting them when the Bunch closes, but have all of the Bunch commands you ran be reversed after a set period of time. Things like Do Not Disturb, Dark Mode, or pausing Dropbox or BackBlaze can have automatic reset times.

[See the docs](/bunch-beta/docs/bunch-files/scheduling-bunches) for a list of available keys and more details.

### Snippet Improvements

Snippets can now be set to run only when closing the Bunch:

	!<useful.snippets#On Close Snippet

They can also be delayed just like apps and scripts:

	<useful.snippets#Delayed Launch ~15

Delays work for on-close snippets as well. 

#### Waiting Snippets

There's also a new feature called Waiting Snippets that will delay running a snippet until all applications that the Bunch needs to launch or quit have finished launching (or quitting). Just indent by 4 spaces or 1 tab. Works with multiple snippets, and they can have additional delays that will begin once everything else is loaded.

	Affinity Photo
	Firefox
	    <waiting.snippet#After Load
	    <waiting.snippet#After Delay ~2

The above will wait until Affinity Photo and Safari have launched before starting a 2-second countdown to launching the `waiting.snippet` file. If all of the apps in the Bunch already match their target state when the Bunch is opened (i.e. apps to launch are already open, apps to quit are already closed), Bunch will open any Waiting Snippets after a short safety delay.

#### Embedded Snippets

With all of the features available to Snippets, you might want to take advantage of them without having to put everything into one or more additional files. If you just want to do something like having a script wait for everything else to launch and don't need to reuse it in another Bunch, you can [embed the snippet](/bunch-beta/docs/bunch-files/snippets/#embeddedsnippets) right into the Bunch. Just add three or more underscores at the end of the Bunch, and everything after that will be read as a snippet. Then you can reference the embedded snippets by using a second left angle bracket (`<<`) instead of a filename. Fragments, delays, Waiting, and on-close syntax all works the same.

	<<#Embedded ~2
	___
	---[Embedded]
	* say "That's pretty cool"

#### Pretty Section Dividers

![sectiondividers.jpg](https://brettterpstra.com/uploads/2021/02/sectiondividers.jpg)

Kind of an aside, but I loosened up the matching for [Snippet section dividers](/bunch-beta/docs/bunch-files/snippets/#fragments) so you can use any number of dashes or hashes before and after the square brackets that surround the section title. You just have to have at least one dash or hash at the beginning, and any that come after the brackets have to match the character at the start. So any of the following work now, whatever makes large snippet files look prettier to you:

	-[My Section]
	---[My Section]---------------------------------
	##[My Section]##
	##################[My Section]##################

(My own snippet files were getting large enough that the formatting was bothering me. This is just a vanity feature.)

### Spotlight Searches

![bunchspotlight.jpg](https://brettterpstra.com/uploads/2021/02/bunchspotlight.jpg)

Where you would normally define files for an application to open, you can now insert a [tag search or a full spotlight search](/bunch-beta/docs/bunch-files/spotlight-searches), and the results will be opened in the specified app. For example, to open any PDF files you downloaded in the last day for review:

	PDFpenPro
	- 'kind:pdf date:today' [~/Downloads] !5

That searches for all PDFs dated today in your Downloads folder, limiting the max results to 5.

You can also do simple `#tag` searches. See the [docs for details](/bunch-beta/docs/bunch-files/spotlight-searches.html).

### Default App

You can now use "Default" as an app name and any files listed under it will open in whatever app "owns" them on your system. This is especially pertinent with the Spotlight searches.

	Default
	- 'kind:document NOT tag:#' [~/Desktop] !15

### The Bunch Log

As Bunch's feature set grows, it's getting more important that the user be able to see exactly what was happening when executing Bunches. So I added some logging features. Go to **Help->Open Log** and you'll get a full view of Bunch in action. Set the logging level in the Help menu to get more or less information. Logs are automatically rotated.

A lot of Bunch's error notifications have been moved from alert popups to notification center. Notifications that you have an error in your Bunch will also have a button that will take you directly to the log.

![bunchlog.jpg](https://brettterpstra.com/uploads/2021/02/bunchlog.jpg)

### New Commands

![bunchnotification.jpg](https://brettterpstra.com/uploads/2021/02/bunchnotification.jpg)

`(notify Here's a message)` will send messages via Notification Center. Just make sure you have notifications enabled for Bunch in System Preferences.

`(sleep)` will sleep your Mac. `(sleep display)` and `(sleep screensaver)`... that seems pretty self explanatory.

### Automation Integration

I've updated the docs with more details about tying Bunch together with great tools like BetterTouchTool, Keyboard Maestro, Hammerspoon, and more. See the [Integration section](/bunch-beta/docs/integration/) to explore the possibilities.

I've also updated the [Bunch CLI](/bunch-beta/docs/integration/cli) to handle running snippets, and included an interactive URL generator. Just run `bunch -i` and it will walk you through menus to perform any action that the [URL handler](/bunch-beta/docs/integration/url-handler) has available.

### New Support Forum

Of course, I've probably also introduced new bugs, so I've also set up a GitHub repository where you can [report bugs](https://github.com/ttscoff/bunch/issues) or [discuss ideas and ask questions](https://github.com/ttscoff/bunch/discussions). It also contains all of the documentation, and if you know how to submit a pull request, you can help out with corrections and additions.

I'm curious to know if using GitHub for this kind of thing works for people not usually on GitHub. If you find it inconvenient to get support this way, do [let me know](/contact/) and I'll make other arrangements.

### Give It a Shot

Grab the beta at [from the download page](https://brettterpstra.com/bunch-beta/download) (where you can also find the current stable version). The beta has a different app name (Bunch Beta) so you can hang on to your current version while you test. And again, all of the documentation for the beta version is separate from the main site, so be sure you're pointing to [brettterpstra.com/bunch-beta/docs](https://brettterpstra.com/bunch-beta/docs). (The Help menu in the Beta version will take you to the correct site.) Let me know what you think!

## Bunch

Project: [Bunch](https://brettterpstra.com/projects/bunch.md)

- [Bunch is back for Golden Gate](https://brettterpstra.com/2026/09/14/bunch-is-back-for-golden-gate.md): 2026-09-14
- [Put all the web browsers in your Dock](https://brettterpstra.com/2026/03/06/put-all-the-web-browsers-in-your-dock.md): 2026-03-06
- [Brett's Favorites 2025](https://brettterpstra.com/2025/12/29/bretts-favorites-2025.md): 2025-12-29
- [Leader Key and Bunch](https://brettterpstra.com/2025/04/30/leader-key-and-bunch.md): 2025-04-30
- [Brett's Favorites 2024: Personal Projects](https://brettterpstra.com/2024/12/31/bretts-favorites-2024-personal-projects.md): 2024-12-31
- [Automating the Dimspirations workflow](https://brettterpstra.com/2024/04/01/automating-the-dimspirations-workflow.md): 2024-04-01
- [Web Excursions for February 29, 2024](https://brettterpstra.com/2024/02/29/web-excursions-for-february-29-2024.md): 2024-02-29
- [Marked and Bunch updates for Sonoma](https://brettterpstra.com/2023/10/05/marked-and-bunch-updates-for-sonoma.md): 2023-10-05
- [Brett's Favorites 2022 - Personal Projects](https://brettterpstra.com/2022/11/30/bretts-favorites-2022-personal-projects.md): 2022-11-30
- [A better Shortcuts command for Bunch](https://brettterpstra.com/2022/08/08/new-in-the-bunch-beta.md): 2022-08-08
- [Project Updates July 2022](https://brettterpstra.com/2022/07/31/project-updates-july-2022.md): 2022-07-31
- [BetterTouchTool and Stream Deck](https://brettterpstra.com/2022/07/02/bettertouchtool-and-stream-deck.md): 2022-07-02
- [Bunch 1.4.8](https://brettterpstra.com/2022/06/14/bunch-1-dot-4-8.md): 2022-06-14
- [Bunch: Focus Modes and other tips](https://brettterpstra.com/2022/03/22/bunch-focus-modes-and-other-tips.md): 2022-03-22
- [He's Doing it again...](https://brettterpstra.com/2022/02/21/doing-it-again-dot-dot-dot.md): 2022-02-21
- [Bunch 1.4.6](https://brettterpstra.com/2021/11/23/bunch-1-dot-4-6.md): 2021-11-23
- [Just your average project update and wellness check-in](https://brettterpstra.com/2021/09/24/just-your-average-project-update-and-wellness-check-in.md): 2021-09-24
- [A Keyboard Maestro macro for cross-linking Markdown docs](https://brettterpstra.com/2021/09/01/keyboard-maestro-markdown-linking.md): 2021-09-01
- [Let's get crazy with BetterTouchTool and Touch Bar Simulator](https://brettterpstra.com/2021/07/21/crazy-bettertouchtool-touch-bar-simulator.md): 2021-07-21
- [Jay Miller: Using Bunch for Creating Newsletters](https://brettterpstra.com/2021/07/06/jay-miller-using-bunch-for-creating-newsletters.md): 2021-07-06
- [Bunch 1.4 is here](https://brettterpstra.com/2021/06/19/bunch-1-dot-4-is-here.md): 2021-06-19
- [A Bunch update, and a Sublime Text package](https://brettterpstra.com/2021/06/08/a-bunch-update-and-a-sublime-text-package.md): 2021-06-08
- [The latest on the Bunch beta](https://brettterpstra.com/2021/03/17/the-latest-on-the-bunch-beta.md): 2021-03-17
- [Bunch gets scheduling (and lots more)](https://brettterpstra.com/2021/02/02/bunch-gets-scheduling-and-lots-more.md): 2021-02-02
- [Another round of Bunch Updates](https://brettterpstra.com/2021/01/19/another-round-of-bunch-updates.md): 2021-01-19
- [And then there were interactive Bunches](https://brettterpstra.com/2021/01/14/and-then-there-were-interactive-bunches.md): 2021-01-14
- [Bunch Updates](https://brettterpstra.com/2021/01/06/bunch-updates.md): 2021-01-06
- [Bunch Snippet Fragments](https://brettterpstra.com/2020/09/17/bunch-snippet-fragments.md): 2020-09-17
- [Bunch and the Stream Deck](https://brettterpstra.com/2020/09/16/bunch-and-stream-deck.md): 2020-09-16
- [Podcasting with Bunch](https://brettterpstra.com/2020/09/15/podcasting-with-bunch.md): 2020-09-15
- [Using Moom with Bunch for window management](https://brettterpstra.com/2020/09/14/using-moom-with-bunch-for-window-management.md): 2020-09-14
- [Bunch gets audio control](https://brettterpstra.com/2020/09/10/bunch-gets-audio-control.md): 2020-09-10
- [Bunch 1.2.2](https://brettterpstra.com/2020/01/14/bunch-1-dot-2-2.md): 2020-01-14
- [Bunch 1.2: no more redundant Bunches](https://brettterpstra.com/2019/09/24/bunch-1-dot-2-no-more-redundant-bunches.md): 2019-09-24
- [Bunch's latest abilities...](https://brettterpstra.com/2019/08/16/bunchs-latest-abilities.md): 2019-08-16
- [Bunch and Timing.app](https://brettterpstra.com/2019/07/02/bunch-and-timing.md): 2019-07-02
- [Bunches LaunchBar Action quick fix](https://brettterpstra.com/2019/06/12/bunches-launchbar-action-quick-fix.md): 2019-06-12
- [Bunch for the menu bar](https://brettterpstra.com/2019/06/11/bunch-for-the-menu-bar.md): 2019-06-11
- [Better Bunch for LaunchBar](https://brettterpstra.com/2019/06/10/better-bunch-for-launchbar.md): 2019-06-10
- [The latest Bunch stuff](https://brettterpstra.com/2019/06/04/the-latest-bunch-stuff.md): 2019-06-04
- [Another day, another Bunch](https://brettterpstra.com/2019/05/20/another-day-another-bunch.md): 2019-05-20
- [Bunch gets its own URL scheme](https://brettterpstra.com/2019/05/17/bunch-gets-its-own-url-scheme.md): 2019-05-17
- [Bunch 1.0.4 with URL schemes support](https://brettterpstra.com/2019/05/16/bunch-1-dot-0-4-with-url-schemes-support.md): 2019-05-16
- [Launch AND quit apps with Bunch 1.0.2](https://brettterpstra.com/2019/05/15/launch-and-quit-apps-with-bunch-1-dot-0-2.md): 2019-05-15
- [Bunch, a batch app launcher for your Dock](https://brettterpstra.com/2019/05/14/bunch-a-batch-app-launcher-for-your-dock.md): 2019-05-14
- [Best of 2017: Real stuff](https://brettterpstra.com/2018/01/22/best-of-2017-real-stuff.md): 2018-01-22
- [Best of 2017: Nerding out on macOS](https://brettterpstra.com/2018/01/15/best-of-2017-nerding-out-on-macos.md): 2018-01-15

---

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff. This content is supported by readers like you. [More about Brett](https://brettterpstra.com/contact.md), including social links.

Copyright © 2026 Brett Terpstra. All rights reserved.
