Reference Action Name in Script


#1

I am trying to write some keyboard actions scripts which will be named with an Emoji. The goal of each action is to insert some text in the draft with that same emoji in the text.

Can I refer to the action name in the javascript so I can clone the same script over all the actions on the keyboard?


#2

That is not possible at this time. More context information in the scripting environment is planned, but not there yet.


#3

Ok, thanks, tweaking the scripts isn’t hard at all, I’m just ultimately lazy and hate to do more than I need. :slight_smile:


#4

Is this something TextExpander could do? You can reference other expansions and “chain” them together so as not to repeat the same text. That is, if all you need to do is insert static text.