async function doDuplicateGroup(){
let duplicateCommand = {
"_obj":"duplicate",
"_target":[{"_enum":"ordinal","_ref":"layer"}]
};
return await require("photoshop").action.batchPlay([duplicateCommand],{});
}
when i use duplicate commands it runs perfectly.
Now i wanna modify some vars such as group name or textbox value in the group when duplicate.
i guess i have to do _obj:get then _obj:select then _obj:set.
Is there a simple way to set vars in duplicateCommand ?