Skip to main content
Alessandro Vecchi
Inspiring
July 28, 2021
Question

Moving a text in all spreads

  • July 28, 2021
  • 3 replies
  • 2507 views

Hello,

I must move the author title just a little bit but in all spreads.

Unfortunatly I did not made a Master page.

I've duplicated the layout of a spread.

It is possible to use a script to make this change in all spreads?

Like an action in photoshop?

Thank you

This topic has been closed for replies.

3 replies

m1b
Community Expert
Community Expert
July 29, 2021

Hi Alessandro, here's a simpler script that simply moves every text frame in the document left by 5 units and up by 20 units. If this would be useful in your case, just change the numbers 5 and 20 to the distances you need.

function main() {
    var _textFrames = app.activeDocument.textFrames;
    for (var i = 0; i < _textFrames.length; i++) {
        _textFrames[i].move(undefined, [-5, -20]);
    }
}

app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Move All TextFrames");

 

Alessandro Vecchi
Inspiring
July 30, 2021

Thank you so much!

The fact is that the Author Caption is the only a that I must move because it's on a "danger zone" due to number of pages.

Alessandro Vecchi
Inspiring
July 30, 2021

I want to tank you all for your time and kindness to help me solve this issue.

As I had partially made the layout using layers I was able to use Master Pages to solve the problem.

Sometimes, the impossible is just a matter of brathing and let the worry dissolve.

Thank you so much!

If I could I'll invite all of you for party!

Have a great one!

Community Expert
July 28, 2021

I strongly suggest you use an Object Style if it's a standalone frame not attached or anchored to anything else.

 

With Object Styles you can determine the X Y position - and then you only have to update the Object Style to position move the text frame.

 

Unfortunately you'll have to apply the Object Style manually to all frames you want it for. Which could be time consuming.

You might be able to Find/Change

But if your frame has a unique feature, like a certain thickness border - that nothing else has in the document you can use Find Change to find the Object and apply the style manually.

 

===========

InDesign has a built in recording of last movements.

So depending on how many spreads you have - the more time it will take.

Move the first one into position 

Then select your next frame

And choose Object>Transform again

 

You can assign a Keyboard Shortcut by going to

Edit>Keyboard Shortcuts

 

 

 

Alessandro Vecchi
Inspiring
July 28, 2021

Thank you.

 

I've tried the find/replace but I wasn't able to find the text.

 

It's a text box that I must slighlty move in all spreads to meet the requirements for printing.

 

Thnak you for you time!

 

Alessandro Vecchi
Inspiring
July 29, 2021

If you apply the object style to the object on all pages you don't need a script.

 

See my first reply where you can set the xy coordinates for the position.

 

 


Hello,

I'm using your first reply to guide my steps.

The fact is that I don't have the option you have.

Spenno
Inspiring
July 28, 2021

It's a little vague what you mean by author title, but if you have a specific instance of text that appears on each page, and you want to change something in each of them, then  I would put them in a paragraph style. And you can put them all in that style in hit without selecting them individually via  find + replace - the caveat being that you need to tell InDesign what to find. If it's identical to all your other text it's not possible, but usually you might have changed something that InDesign can use to identify it (colour, size, space before/after, leading - literally anything that makes it different to all other text in the document). Then you can enter those specs into the Find box and your new paragraph style into the Change box. And then, as they say, 'Bob's your Uncle!'. You can change them all at once.

Of course you need not create the new style - just enter the find values as above, and your altered ones in the change box. But by getting them in a paragraph style, you're in charge. 🙂

Alessandro Vecchi
Inspiring
July 28, 2021

Hello,

thank you and sorry.

Whithowt an image it's really vague.

Please see the image here, the name of the author is the one I must slightly move in all pages.

I hope this helps understand what I must do.

Thank you once again

 

 

Spenno
Inspiring
July 28, 2021

Is this text the only text in the document that is right-aligned? Or in that specific point size?

If so, as suggested in my first post, you can find all right-aligned text, and replace it with what you like, assuming you want the same new positioning to apply to all of them.

But it depends how you've created these frames. If they are force aligned vertically, then the height won't be possible to alter without first removing that setting, which again you can do via Find and Change. But in that instance where you are altering the frame rather than the text, Eugene's suggestion of creating an object style is better.