If you find your menu item in menuBarInfo
, you will se a checked
param
const photoshop = require("photoshop");
const getMenuItem = () => {
return photoshop.action.batchPlay([{
"_obj": "get",
"_target": [
{"_property": "menuBarInfo"},
{"_ref": "application", "_enum": "ordinal", "_value": "targetEnum"},
],
"_options": {"dialogOptions": "dontDisplay"}
}], {synchronousExecution: true})[0]["menuBarInfo"]["submenu"]
}