I'm failing to write a line that will adress a textframe by id (which is 3771) and then move it.
This is how my attempt looks:
app.activeDocument.textFrames.item.id(3771).move([0, 0, 7, 2]);
Any help is appreciated
Hi John, and thanks
var textblock = app.activeDocument.textFrames.itemByID(3771);
textblock .move( [0, 4] );
but still doesn't move the textframe.
Your answer to "where?" is "somewhere" but not-gonna-say? I see.
Are you sure your ID is correct? What if you use
var textblock = app.activeDocument.textFrames;
? Are your units set reasonably so that you would see a [0,4] move?
Do you get an error?
Didn't think it was relevant, but here you go (an instance of "textFrame.id", from InDesignCS5_ScriptingGuide_JS.pdf)
The id was wrong, just like you said.
This line now works:
app.activeDocument.textFrames.itemByID(3768).move( [0, 4] );