Stdlib bug in hasBG
Posted: Tue May 10, 2011 7:19 pm
Hi x, this function will fail as it's trying to get ref and should be bgref
Code: Select allStdlib.hasBG = function(doc) {
try {
var bgref = new ActionReference();
bgref.putIndex(cTID("Lyr "), 0);
executeActionGet(ref);
return true;
} catch (e) {
return false;
}
}
Code: Select allStdlib.hasBG = function(doc) {
try {
var bgref = new ActionReference();
bgref.putIndex(cTID("Lyr "), 0);
executeActionGet(ref);
return true;
} catch (e) {
return false;
}
}