Hello everyone, I am trying to assign keycommands to some scripts without success, I need help!
I have read several detailed threads on the subject and tried to follow the recommendations, but it is not working so far.
A few details:
-
Windows 11, Dorico Pro 5.1.81.2225
-
For now, I am testing with a single script that applies pizz. to the selection. The script does work when activated from the script menu.
-
I have tried two different path syntaxes: one with forward slashes as indicated here, and another with double backslashes as suggested here (older thread).
-
I did check in Preferences > Key Commands to ensure the shortcut is not already assigned elsewhere.
-
I ran my modified keycommands_en.json
file through jsonlint.com, and it was OK with both path syntaxes.
Here is what I entered in the .json file (the forward slashes version):
{
"Script.RunScript?ScriptPath=C:/Users/**ME**/AppData/Roaming/Steinberg/Dorico 5/Script Plug-ins/pizz.lua" : [ "Ctrl+Alt+Shift+P" ]
},
Any idea about what is wrong?
Thanks!
Hi
I would try Edit->Preferences->Key commands and change the language to, say, German, then apply, then set the language back to English and apply again.
The default language setting can get messed up at updates.
Damian
1 Like
The command itself looks right to me; I’m on Windows and use the same forward slash syntax successfully.
Where in the file did you add this? It should probably go in the kGlobal
section.
{
"common" : {
"contexts" : [
{
"context" : "kGlobal",
"shortcuts" : [
{
"Script.RunScript?ScriptPath=C:/Users/**ME**/AppData/Roaming/Steinberg/Dorico 5/Script Plug-ins/pizz.lua" : [ "Ctrl+Alt+Shift+P" ]
},
And I’m assuming that you restarted Dorico to get it to re-read the file.
1 Like
Thank you, I’ll try it as soon as I am back to my computer.
Yes, sure, several times!
Good question, I’ll check asap. I was actually wondering if the issue could be related to this. I think I put it in the Write (or Note Input?) section in my first attempts, and then in Global.
Great, it finally worked!
Strangely, it was fine right after the manipulation you suggested, but after restarting Dorico, it stopped working again… Then I redid the same: same behaviour.
As I have been experimenting random shortcut issues since I switched to English as the default language (I used to run Dorico in French and changed recently), I suddenly thought my keycommands_fr.json
file might be the problem.
So I emptied it and pasted the content from keycommands_en.json
, and now everything seems to work directly, even after restarting. There really seems to be something tricky with language changes and shortcuts— @MarcLarcher has already helped me with an issue related to this, 2 weeks ago.
Is it recommended that all keycommands_xx.json files remain identical when multiple language versions exist?
Anyway, thank you @Damian_leGassick & @asherber, I am now able to add plenty of new useful shortcuts 
1 Like