Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. items = doc.pageItems.itemByLabel("test");
  2. var tf = app.activeDocument.textFrames.everyItem().getElements();
  3. var oldPosition = [tf[0].geometricBounds[1].toFixed(3),tf[0].geometricBounds[0].toFixed(3)];
  4. var newPosition = [100,100];
  5.  
  6. // moving or scaling gives a new position
  7. tf[0].move(newPosition);
  8. alert ("move 1");
  9.  
  10. // back to old position
  11. tf[0].move(oldPosition);
  12. alert ("moved to old position");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement