• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Select everything in a document

New Here ,
Jul 08, 2018 Jul 08, 2018

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

TOPICS
Scripting

Views

313

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 09, 2018 Jul 09, 2018

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

Votes

Translate

Translate
Community Expert ,
Jul 09, 2018 Jul 09, 2018

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 09, 2018 Jul 09, 2018

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 09, 2018 Jul 09, 2018

Copy link to clipboard

Copied

LATEST

Thank you very much!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines