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
Consider me an absolute noob. Yes this is JavaScript. I found fragments within another script which I thought would work, but didn't. With your correction, and some further research it now looks like this:
var textblock = app.activeDocument.textFrames.itemByID(3771);
textblock .move( [0, 4] );
but still doesn't move the textframe.
Didn't think it was relevant, but here you go (an instance of "textFrame.id", from InDesignCS5_ScriptingGuide_JS.pdf)
http://dl.dropbox.com/u/5420164/Screen%20shot%202012-04-26%20at%2016.1 1.00.png
The id was wrong, just like you said.
This line now works:
app.activeDocument.textFrames.itemByID(3768).move( [0, 4] );
North America
Europe, Middle East and Africa
Asia Pacific