Question
Looking to select all items on the layer "Text Layer" and then run pathfinder subtract
I'm trying to write a script that selects all items on the layer "Text Layer" and then run pathfinder subtract. Here is what I have but it continue to error out. Any help would be appreciated.
I'm getting Error Number: 1287
Error String: Cannot determine the spread this object is on. It might be an anchored object the is in overset or uncomposed text
Line: 5
Sourc: textLayer.pageItems.everyItem().select();
var doc = app.activeDocument;
var textLayer = doc.layers.itemByName("Text Layer");
textLayer.pageItems.everyItem().select();
app.executeMenuCommand("Minus Front");