Question
How to select an object?
In the examples that I saw, the object selection was done like this:
var textFrame = doc.textFrames.add();
...
textFrame.selected = true;
// or like this
// textFrame.name = "obj1";
// doc.activeLayer.pageItems.getByName("obj1").selected = true;
However, this doesn't work - the object on the artboard is not selected. What kind of selection are we talking about in these examples? Or how is it done?
