It is not really user to do, but quitting Photoshop from plugin is one of critical path in current CEP’s automation test. So I’d like to do same on UXP.
Is there list of core.perforMenuCommand() parameter available?
I wonder if Menu: File > Exit (Ctrl+Q) can be used.
In ExtendScript, following code works.
var id = charIDToTypeID( "quit" );
executeAction( id, undefined, DialogModes.ALL );
Thank you for the reply.
But I’m not sure your comment.
command ID is not string ID.
Yes, so I converted charIDToTypeID( “quit” ) in ExtendScript and verified it is 1903520116.
And used performMenuCommand().
I’m not sure if it is correct way. But it does not work.
And I think the action manager code should still work.
It works on ExtendScript, but it does not work on UXP.
So I’m still looking for way to quit Photoshop within UXP.