Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- items = doc.pageItems.itemByLabel("test");
- var tf = app.activeDocument.textFrames.everyItem().getElements();
- var oldPosition = [tf[0].geometricBounds[1].toFixed(3),tf[0].geometricBounds[0].toFixed(3)];
- var newPosition = [100,100];
- // moving or scaling gives a new position
- tf[0].move(newPosition);
- alert ("move 1");
- // back to old position
- tf[0].move(oldPosition);
- alert ("moved to old position");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement