Hey!
When i use this:
drw = activeDocument;
drw.selection = null;
I deselect everything, but what can i do, to select all via script?
Thx for listening,
verT!c4L
we don't have a select all function.. but this should do the trick:
function selectAll(){ var layers = document.layers; for (var i=0; i<layers.length; i++){ var layer = document.layers[i]; var children = layer.children; for(var j=0; j<children.length; j++){ children[j].selected=true; } } } selectAll();
ya thanks, i did it by myself too this way:P
countOfLayers = activeDocument.layers.length;
var doc;
if (countOfLayers > 1) {
doc = activeDocument.layers[countOfLayers-1];
}
for ( i = 0; i < doc.pageItems.length; i++ ) {
doc.pageItems[i].selected = true;
}
See u next time maybe ;)