I cannot figure out how to reset the custom workspace programmatically for After Effects or Premiere Pro.
I have been able to do this successfully with other apps.
Examples:
Indesign:
app.menuActions.itemByName( "Reset CustomWorkspace" ).invoke();
InDesign:
app.resetWorkspace();
I need an equivalent for Premiere Pro and also AfterEffects.
Any hint for any version would be helpful. The target is Windows and Mac so I need Extend Script code.
My research has taken me towards looking at the app.executeMenuCommand (In After Effects) but so far I have not been able to find such a command to reset, but only to set it. I can set the workspaces but I cannot reset the workspace.
Here is the goal of how the extension should behave. Assuming the custom workspace is correctly installed on their machine, on startup it will set the workspace so that the extension docs to the place I want. The problem I am seeing is that it WILL doc fine but the width is not the accurate width that the workspace is supposed to use. Solving this requires me to "Reset" the workspace to the saved layout. At which point, the workspace correctly sizes and docs. I am not sure why I need this extra step of "Resetting" in order for the workspace to correctly kick in but I do need this extra step.
Thanks for any help,
Daniel