---
title: "Advanced Tip: Toggling Any Tag with a Key Command"
description: How to set up an OmniFocus script to toggle any tag with a key command.
---

![burger-icon](https://www.kouroshdini.com/hubfs/icons/burger-icon.svg) 

[![Kourosh Dini - Homepage](https://www.kouroshdini.com/hubfs/logos/kourosh-logo.svg)](https://www.kouroshdini.com)

![close-icon](https://www.kouroshdini.com/hubfs/icons/close-icon.svg)

- [Blog page](https://www.kouroshdini.com/the-dini-group-ltd-blog)
- [Podcast page](https://www.kouroshdini.com/podcast)
- [Music page](https://www.kouroshdini.com/music)
- [Courses & Books page](https://www.kouroshdini.com/courses-and-books)
- [Psychoanalysis page](https://www.kouroshdini.com/psy)
- [About page](https://www.kouroshdini.com/about)
- [Contact page](https://www.kouroshdini.com/contact)
- [Waves of Focus page](https://www.kouroshdini.com/waves-of-focus)

![Search](https://www.kouroshdini.com/hubfs/icons/search-icon.svg)

[![at-icon](https://www.kouroshdini.com/hubfs/icons/at-icon.svg)](mailto:kmdini@gmail.com)

[Return to Blog](https://www.kouroshdini.com/the-dini-group-ltd-blog)

# Advanced Tip: Toggling Any Tag with a Key Command

Feb 04, 2019 

![](https://www.kouroshdini.com/hubfs/blog%20image.webp)

We can already add and remove a Forecast tag using Control-Command-l. But what about other tags? The only thing that comes close is the adding and removal of a flag using Shift-Command-l.

Here’s a neat trick using a script created by Bryan Gebhardt (Gebby) on the [Automator’s forum](https://talk.automators.fm/). It’s [an Applescript to toggle any tag](https://talk.automators.fm/t/applescript-to-add-remove-specific-tags-in-omnifocus-with-keyboard-shortcuts/3484/7), much like you can already do with the Forecast tag. You’ll also need a key binding app such as Keyboard Maestro.

Be aware that I’d consider this advanced use. To do the trick:

- Copy and paste the code from [the Github site](https://github.com/bgebhardt/osx_scripts_folder/blob/master/Applications/OmniFocus/Toggle%20Tag.scpt).
- Create and save the file in Script Editor.
- Add the file to the OmniFocus Script folder (or anywhere you can remember):

![](https://static.hsstatic.net/BlogImporterAssetsUI/ex/missing-image.png)

- Create a Keyboard Maestro macro to trigger the script using your preferred key command:

![](https://static.hsstatic.net/BlogImporterAssetsUI/ex/missing-image.png)

I’ve kept the Control-Command-(key) structure to maintain continuity.

I’ve been playing around with my top-tier tags *@Quick* and *@Consider*. To have individual key commands for each, rather than choose them from a menu, I’ve created two individual files:

![](https://static.hsstatic.net/BlogImporterAssetsUI/ex/missing-image.png)

In each, I set the variable to a single tag, rather than the default list:

![](https://static.hsstatic.net/BlogImporterAssetsUI/ex/missing-image.png)

Hat tip to Joel Anderson. Thanks!

![Divider](https://www.kouroshdini.com/hubfs/separator.svg)

Share this article

<https://www.facebook.com/sharer/sharer.php?u=https://www.kouroshdini.com/the-dini-group-ltd-blog/toggling-any-tag-with-a-key-command> <https://www.linkedin.com/shareArticle?mini=true&url=https://www.kouroshdini.com/the-dini-group-ltd-blog/toggling-any-tag-with-a-key-command>

## Recent Articles

[![Is the Medication Working?](https://www.kouroshdini.com/hubfs/S01E77%20-%20Is%20the%20Medication%20Working-blog.jpg)](https://www.kouroshdini.com/the-dini-group-ltd-blog/is-the-adhd-medication-working)

#### [Is the Medication Working?](https://www.kouroshdini.com/the-dini-group-ltd-blog/is-the-adhd-medication-working)

 Oct 16, 2026

Hmm, I wonder if this medication's working. Maybe it is. I've been at this game for about four hours, and the ...

![Bottom card separator](https://www.kouroshdini.com/hubfs/faq/line-mobile.svg)

[![No Pain, No Gain, and the Wandering Mind](https://www.kouroshdini.com/hubfs/Ep%2076%20No%20Pain%20No%20Gain%20and%20the%20Wandering%20Mind.jpg)](https://www.kouroshdini.com/the-dini-group-ltd-blog/no-pain-no-gain-and-the-wandering-mind-adhd)

#### [No Pain, No Gain, and the Wandering Mind](https://www.kouroshdini.com/the-dini-group-ltd-blog/no-pain-no-gain-and-the-wandering-mind-adhd)

 Oct 09, 2026

It's 9:00 at night. The report is maybe two-thirds done. My back is killing me. Well, maybe I'll just keep pus...

![Bottom card separator](https://www.kouroshdini.com/hubfs/faq/line-mobile.svg)

[![Building Trust With a Wandering Mind](https://www.kouroshdini.com/hubfs/Blog%20Building%20Trust%20With%20a%20Wandering%20Mind%20-%20ep75.jpg)](https://www.kouroshdini.com/the-dini-group-ltd-blog/abuilding-trust-with-a-wandering-mind-agency-adhd)

#### [Building Trust With a Wandering Mind](https://www.kouroshdini.com/the-dini-group-ltd-blog/abuilding-trust-with-a-wandering-mind-agency-adhd)

 Oct 02, 2026

Maybe others can do it, that trick, that hack, that system. I'm just not sure that I trust I could. We said th...

![Bottom card separator](https://www.kouroshdini.com/hubfs/faq/line-mobile.svg)

[Return to Blog](https://www.kouroshdini.com/the-dini-group-ltd-blog)

## Publications

 Over the years, I’ve written five main works on productivity. Sign up for the Weekly Wind Down newsletter to get free previews.

![Kourosh Dini courses](https://www.kouroshdini.com/hubfs/courses%20and%20books/books%20left.webp) ![Kourosh Dini books](https://www.kouroshdini.com/hubfs/courses%20and%20books/books%20right.webp) 

[See all the publications](https://www.kouroshdini.com/courses-and-books)

- [Kourosh Dini Instagram (opens in new window)](https://www.instagram.com/kouroshdinimd/)
- [Kourosh Dini LinkedIn (opens in new window)](https://www.linkedin.com/in/kouroshdini)
- [Kourosh Dini X/Twitter (opens in new window)](https://x.com/kouroshdini)
- [Kourosh Dini YouTube (opens in new window)](https://www.youtube.com/c/KouroshDini)

### Contact Us

 If you have a clinical matter, please call.  
 For books and productivity matters, please email.

- [1020 South Wabash Ave, Unit 4G, Chicago, IL 60605 (Opens Address in google Maps)](https://maps.app.goo.gl/7agnPcDjwB6PRNuX6)
- [312-391-3171 (opens phone dialer)](tel:+13123913171)
- [dinigroup@kouroshdini.com (Opens mail application)](mailto:dinigroup@kouroshdini.com)

- [Home](https://www.kouroshdini.com/)
- [Blog](https://www.kouroshdini.com/the-dini-group-ltd-blog)
- [Podcast](https://www.kouroshdini.com/podcast)
- [Music](https://www.kouroshdini.com/music)
- [Books & Courses](https://www.kouroshdini.com/courses-and-books)
- [Psychoanalysis](https://www.kouroshdini.com/psy)

- [About](https://www.kouroshdini.com/about)
- [Contact](https://www.kouroshdini.com/contact)
- [Privacy Policy](https://www.kouroshdini.com/privacy-policy)
- [Terms & Conditions](https://www.kouroshdini.com/terms-and-conditions)

© 2026 The Dini Group, Ltd.

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Kourosh",
    "url" : "https://www.kouroshdini.com/the-dini-group-ltd-blog/author/kourosh"
  },
  "dateModified" : "2026-03-31T17:49:35.963Z",
  "datePublished" : "2019-02-04T16:00:00.000Z",
  "headline" : "Advanced Tip: Toggling Any Tag with a Key Command",
  "mainEntityOfPage" : {
    "@id" : "https://www.kouroshdini.com/the-dini-group-ltd-blog/toggling-any-tag-with-a-key-command",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://www.kouroshdini.com/hubfs/logos/kourosh-logo.svg"
    }
  }
}
```