# Named Trigger to Activate CheatSheet

**URL:** <https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184>\
**Category:** Configuration Help & General Discussion\
**Created:** [August 10, 2020, 2:18am UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184 "2020-08-10T02:18:34Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Future\_Face](https://community.folivora.ai/user_avatar/community.folivora.ai/future_face/32/13410_2.png) [@Future\_Face](https://community.folivora.ai/u/Future_Face)\
**Post date:** [August 10, 2020, 2:18am UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/1 "2020-08-10T02:18:34Z")

</div>

Hi  
Recently I started using CheatSheet. I would like to have it activated when I long-press the esc. button. Usually, CheatSheet is activated when you hold the Command button, but it takes too long to hold.  
So it would be like a 'Send shortcut to specific app' button, but only using the Command key, and for longer than just a quick tap.  
Is there any way I can do this?  
Thanks

---

<div class="post-metadata">

**Author:** ![Future\_Face](https://community.folivora.ai/user_avatar/community.folivora.ai/future_face/32/13410_2.png) [@Future\_Face](https://community.folivora.ai/u/Future_Face)\
**Post date:** [August 11, 2020, 11:23pm UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/2 "2020-08-11T23:23:52Z")

</div>

_bump_

---

<div class="post-metadata">

**Author:** ![Caliguvara](https://community.folivora.ai/user_avatar/community.folivora.ai/caliguvara/32/42570_2.png) [@Caliguvara](https://community.folivora.ai/u/Caliguvara)\
**Post date:** [August 11, 2020, 11:48pm UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/3 "2020-08-11T23:48:51Z")

</div>

Replace the default esc key (uncheck it in the BTT Settings) with a custom button. On a tap, assign it esc, on a Named trigger your desired action. This should do the job. Don't forget to link the button to the very left of the Touch Bar, and to display it in every Touch Bar group etc etc.

---

<div class="post-metadata">

**Author:** ![Future\_Face](https://community.folivora.ai/user_avatar/community.folivora.ai/future_face/32/13410_2.png) [@Future\_Face](https://community.folivora.ai/u/Future_Face)\
**Post date:** [August 12, 2020, 2:18am UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/4 "2020-08-12T02:18:35Z")

</div>

tried that, the problem is that 'command' needs to be held for about 2 or 3 secs. how can I turn that into a named trigger?

---

<div class="post-metadata">

**Author:** ![Caliguvara](https://community.folivora.ai/user_avatar/community.folivora.ai/caliguvara/32/42570_2.png) [@Caliguvara](https://community.folivora.ai/u/Caliguvara)\
**Post date:** [August 12, 2020, 6:24am UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/5 "2020-08-12T06:24:27Z")

</div>

Either through Apple script key code (we had this in an other thread already 😉) sending key down, delay 2, sending key up  
Or maybe working BTT "sending ⌘" down only + delay next action + sending ⌘ up only

But this would take a hell of a delay I guess as you'll have to long press the esc button and then the long press will be simulated, double time 🙄  
Can't you change it to another keyboard shortcut combination that does not need to be hold? This way your Named trigger would bring it up quicker.

---

<div class="post-metadata">

**Author:** ![Future\_Face](https://community.folivora.ai/user_avatar/community.folivora.ai/future_face/32/13410_2.png) [@Future\_Face](https://community.folivora.ai/u/Future_Face)\
**Post date:** [August 12, 2020, 6:43am UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/6 "2020-08-12T06:43:25Z")

</div>

> [@Caliguvara](#):
>
> Or maybe working BTT "sending ⌘" down only + delay next action + sending ⌘ up only

tried this, doesnt work

> [@Caliguvara](#):
>
> Either through Apple script key code (we had this in an other thread already 😉) sending key down, delay 2, sending key up

what do you mean? can you give me a link to the thread pls?

> [@Caliguvara](#):
>
> Can't you change it to another keyboard shortcut combination that does not need to be hold? This way your Named trigger would bring it up quicker.

myabe i will.. you have a point there

---

<div class="post-metadata">

**Author:** ![Caliguvara](https://community.folivora.ai/user_avatar/community.folivora.ai/caliguvara/32/42570_2.png) [@Caliguvara](https://community.folivora.ai/u/Caliguvara)\
**Post date:** [August 12, 2020, 8:07am UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/7 "2020-08-12T08:07:22Z")

</div>

> [@Future\_Face](#):
>
> can you give me a link to the thread pls?

My Bad! I get old, thought you opened this one 🙂

> [@Is there a script to launch Mail and check for new Mails](https://community.folivora.ai/t/is-there-a-script-to-launch-mail-and-check-for-new-mails/14887):
>
> hi, I used this script on Mojave to start the Mail app and check for any new mails. If any unread mails are there, the Mail app should be kept open otherwise the window should be closed. tell application "Mail" launch activate delay 4 if (count items of (messages of inbox whose read status is false)) \> 0 then activate else close every window end if end tell But since Catalina, the Mail app just opens and closes after the delay. Do you guys have any suggestions?

But I honestly think that assigning CheatSheet a keyboard shortcut that does not need to be hold would be quicker and therefor more efficient. Plus, avoids running Apple Script.

---

<div class="post-metadata">

**Author:** ![Future\_Face](https://community.folivora.ai/user_avatar/community.folivora.ai/future_face/32/13410_2.png) [@Future\_Face](https://community.folivora.ai/u/Future_Face)\
**Post date:** [August 12, 2020, 8:13am UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/8 "2020-08-12T08:13:42Z")

</div>

yeah, unfortunately you can't customise the way to activate CheatSheet. default is holding command. sucks

---

<div class="post-metadata">

**Author:** ![Future\_Face](https://community.folivora.ai/user_avatar/community.folivora.ai/future_face/32/13410_2.png) [@Future\_Face](https://community.folivora.ai/u/Future_Face)\
**Post date:** [August 12, 2020, 8:15am UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/9 "2020-08-12T08:15:50Z")

</div>

had a read through it. where is the code that actually holds the mod key?  
edit  
mb, found it

```
tell application "Mail"
    activate
    tell application "System Events"
        keystroke "0" using {command down} --> Message Viewer ⌘0
        keystroke "1" using {command down} --> Inbox ⌘1
        keystroke "2" using {command down} --> Drafts ⌘2
        keystroke "3" using {command down} --> Sent ⌘3
        keystroke "a" using {option down, command down} --> Address Panel ⌥⌘A
        keystroke "0" using {option down, command down} --> Activity ⌥⌘0
    end tell
end tell

```

so if I make the application 'CheatSheet' then how can I make it do what I want?

---

<div class="post-metadata">

**Author:** ![Caliguvara](https://community.folivora.ai/user_avatar/community.folivora.ai/caliguvara/32/42570_2.png) [@Caliguvara](https://community.folivora.ai/u/Caliguvara)\
**Post date:** [August 12, 2020, 12:56pm UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/10 "2020-08-12T12:56:52Z")

</div>

Try this (not sure though as I can't test it on my computer). Maybe you need a delay 3 or more.

```auto
tell application "System Events"
        key down {command}
        delay 2
        key up {command}
    end tell

```

---

<div class="post-metadata">

**Author:** ![Future\_Face](https://community.folivora.ai/user_avatar/community.folivora.ai/future_face/32/13410_2.png) [@Future\_Face](https://community.folivora.ai/u/Future_Face)\
**Post date:** [August 12, 2020, 9:10pm UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/11 "2020-08-12T21:10:28Z")

</div>

hmm, didn't work. all good, its no biggie, just easier to have a button on the touchbar to activate it.

---

<div class="post-metadata">

**Author:** ![Caliguvara](https://community.folivora.ai/user_avatar/community.folivora.ai/caliguvara/32/42570_2.png) [@Caliguvara](https://community.folivora.ai/u/Caliguvara)\
**Post date:** [August 13, 2020, 10:40am UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/12 "2020-08-13T10:40:47Z")

</div>

Is the app itself scriptable?

---

<div class="post-metadata">

**Author:** ![Caliguvara](https://community.folivora.ai/user_avatar/community.folivora.ai/caliguvara/32/42570_2.png) [@Caliguvara](https://community.folivora.ai/u/Caliguvara)\
**Post date:** [August 13, 2020, 5:44pm UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/13 "2020-08-13T17:44:27Z")

</div>

Or you might need a higher delay. The script itself worked, just checked it out. 🙂

---

<div class="post-metadata">

**Author:** ![Future\_Face](https://community.folivora.ai/user_avatar/community.folivora.ai/future_face/32/13410_2.png) [@Future\_Face](https://community.folivora.ai/u/Future_Face)\
**Post date:** [August 13, 2020, 9:04pm UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/14 "2020-08-13T21:04:27Z")

</div>

app isn't scriptable. I just realised it might not actually work, as you need to keep holding the command key for the shortcuts to show. when you let go of command, they disappear. no biggie tho, its just a weird way to activate it.

---

<div class="post-metadata">

**Author:** ![lynx](https://community.folivora.ai/user_avatar/community.folivora.ai/lynx/32/9212_2.png) [@lynx](https://community.folivora.ai/u/lynx)\
**Post date:** [April 19, 2024, 11:07pm UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/15 "2024-04-19T23:07:57Z")

</div>

Did you figure this out @Future_Face

---

<div class="post-metadata">

**Author:** ![Future\_Face](https://community.folivora.ai/user_avatar/community.folivora.ai/future_face/32/13410_2.png) [@Future\_Face](https://community.folivora.ai/u/Future_Face)\
**Post date:** [April 20, 2024, 8:12am UTC](https://community.folivora.ai/t/named-trigger-to-activate-cheatsheet/18184/16 "2024-04-20T08:12:10Z")

</div>

if i remember correctly, i couldn’t find a way to do this. sorry!
