Copy link to clipboard
Copied
Hi guys, I want to select everything in my 190 pages and move it 5 mm higher, is it possible? I used the text function in the Mastro pages, but I had to manually change the size of the text box many times in the various pages so if I modify it in the Mastro it changes just some of them
Hi,
try this one-liner written in ExtendScript (JavaScript) below.
Make sure that none of your spreads is viewed rotated before running the script.
app.documents[0].pages.everyItem().pageItems.everyItem().move( undefined , [ 0 , "-5mm"] );
Regards,
Uwe
Copy link to clipboard
Copied
Hi,
try this one-liner written in ExtendScript (JavaScript) below.
Make sure that none of your spreads is viewed rotated before running the script.
app.documents[0].pages.everyItem().pageItems.everyItem().move( undefined , [ 0 , "-5mm"] );
Regards,
Uwe
Copy link to clipboard
Copied
Note:
You cannot select "everything" in a document. You can only select "everything" on a single spread, the active spread.
But you can address everything in a document, if everything means all pageItems.
But in your case you want to address not all pageItems in the document, but:
1. pageItems on pages, not masters
2. not pageItems that are nested into each other like items grouped or items anchored or items pasted inside other items
Regards,
Uwe
Copy link to clipboard
Copied
Thank you very much!!