Hi all,
I just created my first plugin and now I’m stuck with the validation / enabling part: It installs but the menu entry stays greyed out. It should always be available, so I tried to let the validate function always return true. Here’s the code:
...
(() => {
const action = new PlugIn.Action(function(selection, sender){
var tag = tagNamed("☆")
if(tag.status === Tag.Status.Active){
tag.status = Tag.Status.OnHold
} else {
tag.status = Tag.Status.Active
}
});
action.validate = function(selection, sender){
return (true)
};
return action;
})();
What so I miss?
Thanks in advance,
Johannes