You can record a macro of hitting that button (with the caret showing). Then all you need is a keyboard shortcut. On Mac, it can be assigned in System Preferences > Keyboard > Shortcuts (by the name you gave the Lua script, which shows in the menu).
Whenever you invoke the macro in the future, it will make a 3:2 tuplet of whatever note value, even if the button shows you last used a different ratio.
I’m on Windows, so I’m not sure where that lives on the Mac. On Windows at least it’s in the User folder which is different that the Application folder. I’m guessing you’re maybe in the Application section, but I’m not on Mac so not really sure. It’s probably in the same folder with your userlibrary.xml file if there’s a way to search for that.
I highly recommend using a stream deck. I have the small one with 15 buttons and have programmed it (which is very easy and intuitive) to have an on/off toggle for triplets, quintuplets, and sextuplets–each with one button push. I keep my left hand on stream deck and right hand on a MIDI keyboard with only occasionally moving to the computer keyboard.
Edit: I now see Marc already made this recommendation, so I simply second that.
I would confirm with a Mac user that’s the right one. There’s a keycommands file in the Application folder that includes all the factory shortcuts. This file will be overwritten with any update. The one in your User folder will keep all your personal shortcuts when Dorico is updated, so that’s the one where you want to make any edits.
I have Create Tuplet and End Tuplet mapped to the / and * keys of the numpad, that way, at least for the (by far) most common tuplet I don’t need to move my hand. (8th-note triplets: 5/3Enter, all under my fingers.) Not so much about # of keystrokes, more about ergonomics.
No need for Apple’s Script Editor. Here’s my procedure in more detail:
Show the caret, choose Script > Start Recording Macro, click the tuplet button in the left panel, and choose Script > End Recording Macro.
Go to the Finder and while holding the Option key on the keyboard, choose Go > Library. (This takes you to the Library directory in your Home folder, which is normally hidden.)
Go into the “Script Plug-ins” folder and find the file “usermacro.lua”. Rename it to something appropriate but unique. I named mine “MakeTriplet.lua” (with no space). As soon as you do this, it shows up with your new name in Dorico’s Script menu.
Go to System Preferences > Keyboard. Click the Shortcuts tab and choose “App Shortcuts” from the list on the left. Then click the + button to add a new shortcut. Choose Dorico from the list of Applications, fill in the exact name of your script command, click in the 3rd field to assign a keystroke.
That’s it! Your keystroke is immediately available in Dorico without even having to relaunch.
Thanks @Mark_Johnson for your clear explanation. Don’t know why I was blind to see “Script” in the Dorico menu. I’m certainly going to explore these possibilities cause I like macros and automisation.
Edit: tried this as well and also works… I’m spoiled
@FredGUnn had to fiddle a bit to make it work on my side but now it works like a breeze. Always nice to understand what happens under the hood of an application and to be able to manipulate this sort of things
@Mark_Johnson I’ve been playing around with this method. For example it is very useful where I am not able to use the key command customization in Dorico, such as function keys F17 till F19 which for some reason don’t seem to respond as expected with Dorico.
I’m able to use the Dorico script tool in combination with these keys, but strangely when I record a macro “delete” and assign it to for example key F19 (or any other key for that matter), it doesn’t work.