---
title: Bunch's latest abilities...
date: 2019-08-16 06:34
slug: bunchs-latest-abilities
categories:
- Code
tags:
- bunch
- shortcuts
---

![](https://brettterpstra.com/uploads/2019/08/bunchkeyboard-rb.jpg)

I got up a bit too early this morning. I finished a sprint on a freelance project but wasn't ready to dig into my other big stuff yet. That stuff's for after 5am. Before 5am is Bunch time. As promised, I haven't written a blog post for every update, but you can find the full list of recent changes in the [changelog](/projects/bunch/#changelog).

If you don't know what Bunch is, it's an app I wrote for batch launching apps, opening files, toggling Do Not Disturb and a dozen other things. Start with [the docs](/projects/bunch/).

There are a few apps that I launch in Bunches that don't respond to the `XX` command that would normally close all open windows for the app. Bunch uses an AppleScript "close every window" command to do this, and some apps by their nature just don't like that. In Tower, for example, that command won't work, but typing `⌥⌘W` will. So, clearly, that's what Bunch needed to be able to do.

<!--more-->

In the file parameters for an app, you can now specify shortcuts to send to the app, or full strings to type out. The latter being less useful, but I already had the code for it. So it happened.

To specify a shortcut, you just surround it in curly brackets. So for the previous example:

	Tower
	- {~@w}
	- ~/Code/Bunch

That will send the Close All Windows shortcut and then open the Bunch repository. You'll note that the shortcut is specified with some odd characters. These map to the same characters used by [key bindings in macOS](/projects/keybindings/):

| symbol  | key |
| ------  | --- |
| `$` | Shift |
| `~` | Option |
| `@` | Command |
| `^` | Control |

You can send multiple shortcuts in sequence just by adding a space between them within the curly brackets:

	Sublime Text
	- {@a @c @v @v}

Which would, for whatever reason, perform a select-all, copy, paste, paste in the frontmost window of Sublime Text. Obviously not a good example: in addition to being pointless it presupposes that a window is already open, which isn't a safe assumption in a Bunch. But anyway, you can send sequences.

You can also type text. Like I said, this is less useful than sending shortcuts, but if you need to send a series of regular keystrokes to an app, you can do so using square brackets. Within these strings there are a few "escape" codes you can use, specified using a double backslash.

| escape | key | mnemonic |
| ------ | --- | -------- |
| `\\n` | Return| newline |
| `\\t` | Tab | tab |
| `\\b` | Left Arrow | back |
| `\\f` | Right Arrow| forward |
| `\\p` | Up Arrow | previous |
| `\\n` | Down Arrow | next |

In your Bunch file:

	- TextEdit
	- {@n}
	- [- First item\\n\\t- Second item\\n]

This would create a new file and insert (note the newlines and tab):

	- First item
		- Second item

If you actually find a clever use for that second one, do tell.

The latest version is available for automatic update (**Bunch**->**Check For Updates**) or download from the [project page](/projects/bunch/). As always, it's [donationware](/donate/) and I sincerely thank everyone who's found it useful enough to pitch in.

[Grape you very much](https://brettterpstra.com/donate/?ppid=A9KK2MTU7QSJU)

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