@LucieDevGirl yes, but a keyboard shortcut file is just a regular jsx script file that you can assign a keyboard shortcut later using the after effects keyboard shortcuts window.
for example, this is a keyboard shortcut jsx code for a simple automation that i exported from the pro version-
function sendEvent(type) {
new ExternalObject("lib:PlugPlugExternalObject");
var event = new CSXSEvent();
event.data = '{"version":"2.0.3","json":{"name":"test","scope":[{"className":"ForLoop","iterationsType":"layers in the active comp","customIterations":2,"elementName":"loop1","enabled":true,"collapse":false,"elementAName":null,"elementAType":null,"elementAProperty":"","scope":[],"mainColor":[0.11579711576747997,0.4172038519467669,0.9189456236363223,1],"reverseOrder":false,"doPrecomps":false,"comment":false}],"loopCounter":2,"alertCounter":1,"textBoxCounter":1,"variableCounter":1,"useIcon":false,"icon":"","useColor":false,"description":"","write_external_files":false,"run_external_code":false,"enableComments":false}}'
event.type = type;
event.dispatch();
}
sendEvent("automation-toolkit-run-automation");
in this jsx code we create an event called “automation-toolkit-run-automation”, the event also contain the json data of the automation in “event.data”, we will send this event and the pro version of the Automation Toolkit Extension will capture this event and run this json as an automation.
So in your case you can right click on the automation button and click “create shortcut file”, it will create a file with a jsx code similar to the example code above with a different json, then you can copy the code and paste it in your existing jsx script file, and it should run the automation.
*Keep in mind that you’ll need the Automation Toolkit pro version open in the background to be able to run this code