Working with putCustomOptions and getCustomOptions
Hello,
I want to create a global variable with getCustomOptions:
var myCounter = 15;
var desc = new ActionDescriptor();// create a descriptor to hold value
desc.putInteger(0, myCounter);
app.putCustomOptions('myScript', desc, true );// store the descriptor by unique name
But first of all I want to check if this key/value was set before. If not, then I would execute the code above to set this "global variable".
How can I check if this key/value was set before? Maybe with "typeof xyz === 'undefined'" or something like that?
carlos
