Reply To: Object Style to New Layer

#103492
Aaron Gray
Participant

Oleh, this script is a great idea and just what I was looking for. However, I’m having some trouble with it. It works great sometimes, but other times I get a JavaScript Error:

Error Number: 30477
Error String: Invalid value for parameter ‘to’ of method ‘move’. Expected Array of 2 Units, Spread, Page or Layer, but received nothing.
Line: 37
Source: app.activeDocument.textFrames[i].move(app.activeDocument.layers.item(layer));

Do you have any idea what could be causing that? I’m using InDesign CC 2014.

Thanks!
Aaron Gray

This article was last modified on May 2, 2018

Comments (0)

Loading comments...