I'm hitting a wall where Premiere is constantly stealing focus from AME, so that it's virtually impossible to focus AME short of calling the executable directly, and even that doesn't always work.
Which never seems to work for any app.
In ExtendScipt, I've tried The most simple way:
And with Vulcan, I've tried:
const vulcan = new Vulcan();
vulcan.launchApp('ame-14.0', true, '');
Both of which only work if I set a timeout and focus away from my CEP panel, so it's impractical for a button usage.
The Vulcan method works fine for other Adobe apps but not AME. There seems to be a strange focus battle with Premiere and AME when a CEP panel is in focus.
My current workaround, is finding the Media Encoder execuatble and calling it directly with execSync() so that it's brought to the front, but on Windows that only works if AME has been launched after a CEP panel, and on Mac it only works if AME has been launched before the CEP panel.
Thanks Bruce, I tried that but running into the same issue unfortuantely.
As you can see from this GIF, some of these functions will highlight the app, but will not bring it into focus, it stays behind Premiere. However, once AME has been focused after the panel has been launced for the first time, then vulcan.launchApp() and execFileSync() will work.
(testing on CC 2020, but run into the same issues on 2021)