Check the availability of Save for web option
I want to check the availability Save for web option for Photoshop CC 2107, 2015.5 and 2014.
I have found the script for only CC2017 as follows.
var r = new ActionReference();
r.putEnumerated(stringIDToTypeID("application"), stringIDToTypeID("ordinal"), stringIDToTypeID("targetEnum"));
var d = new ActionDescriptor();
d.putReference(stringIDToTypeID("null"), r);
d.putString (stringIDToTypeID("command"), "getCommandEnabled");
d.putDouble(stringIDToTypeID("commandID"), 1695 );
var s4w_enabled = executeAction(stringIDToTypeID("uiInfo"), d, DialogModes.NO).getObjectValue(stringIDToTypeID("result")).getBoolean(stringIDToTypeID("enabled"));
alert(s4w_enabled);
But I want the script for 2015.5 and 2014 as well.
Can anyone please help?
