I thin it is even twice there
const {batchPlay} = require("photoshop").action;
const result = await batchPlay(
[
{
_obj: "get",
_target: [
{
_property: "presetManager"
},
{
_ref: "application",
_enum: "ordinal",
_value: "targetEnum"
}
],
_options: {
dialogOptions: "dontDisplay"
}
}
],
{}
);
const pinned = result[0].presetManager[0];
const {batchPlay} = require("photoshop").action;
const result = await batchPlay(
[
{
_obj: "get",
_target: [
{
_property: "brushes"
},
{
_ref: "application",
_enum: "ordinal",
_value: "targetEnum"
}
],
_options: {
dialogOptions: "dontDisplay"
}
}
],
{}
);
const pinned = result[0].brush;