---
title: Bunch Snippet Fragments
date: 2020-09-17 08:00
slug: bunch-snippet-fragments
categories:
- Blog
tags:
- bunch
- snippet
- dropbox
- automation
---

![fragments-rb.jpg](https://brettterpstra.com/uploads/2020/09/fragments-rb.jpg)

Ok, this should probably be my last [Bunch](http://brettterpstra.com/projects/bunch/) post for a while. I just wanted to point out a couple of new features.

First, as I mentioned in another post recently, there's a new syntax which allows you to _launch_ an app when _closing_ a Bunch. Take Dropbox as an example. If you quit Dropbox when starting a context that needs the bandwidth (e.g. podcasting), you probably want to load it again when you're done. This makes it easy: just use `!!Dropbox`. 

The double bang is a bit inelegant, but I'd already used `!AppName` for quitting an app, whereas with any script commands it means "run when quitting". So that's a bit ugly, but I figure it's a double negative, which kind of makes sense, semantically.

I also added the ability to affect volume and mute settings of input and output devices independently. Now you can use `(audio input mute)` or `(audio output volume 65)`. `(audio volume 50)` still works and defaults to the current output device.

Ok, here's the headline feature: I've added a feature that allows you to define multiple sections in a snippet file, and specifically reference them when including in a Bunch.

Bunch allows snippet files, which are just partial Bunches in your Bunch folder with any extension other than `.bunch`. So if you have `MySnippet.snippet` in your Bunch folder, you can then include its contents in any Bunch using:

	<MySnippet.snippet

Which is handy if you want to avoid repeating common tasks in every Bunch. With this new feature, you can have a single snippet file containing multiple snippets, delineated with lines like this:

```
#[Writing]

%nvUltra Beta
MultiMarkdown Composer
Marked 2

#[Comms]

Skype
Slack
TweetBot
Messages
(dnd off)
```

Then you can reference an individual section in the include line with a fragment identifier:

	<MySnippet.snippet#Comms

If you don't include the fragment id, it will run all the sections, which opens some possibilities for complex snippet handling. One universal snippet but the ability to run just individual parts of it when needed.

As you were.

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