Skip to main content
Jonlin Creative
Inspiring
September 25, 2024
Question

Can I automatically apply an object style based on paragraph style?

  • September 25, 2024
  • 2 replies
  • 727 views

Hello all,

 

I know it's possible to make a paragraph style part of an object style, but I'm basically wanting to do the reverse: apply an object style based on a paragraph style.

 

A little more context: I'm working on typesetting a book and have a handful of pages where I want the text to be aligned to the bottom of the frame rather than the top. In those instances, there will be a specific paragraph style applied that will only be used on those kinds of pages.

 

So far I haven't found any automatic or semi-automatic way to do that. I can do it manually, of course, but if there are any changes to the flow of the book I'd have to redo it.

 

If anyone knows of a script that will do it or some way to handle it just with built-in tools in InDesign, that would be great.

 

Thanks!

This topic has been closed for replies.

2 replies

Robert at ID-Tasker
Legend
September 25, 2024

@Jonlin Creative

 

If you work on a PC - my ID-Tasker tool can do this easily - and a lot more, including what Mastermatic can - but it's not free.

 

Jonlin Creative
Inspiring
September 25, 2024

Thanks Robert, I'll take look!

Robert at ID-Tasker
Legend
September 25, 2024

That's pretty much all you would need:

 

BEFORE:

AFTER:

Yellow represents applied Object Style.

 

1st Task - should be run using Play button at the top - will load info about all ParaStyles that you want to include - there is only one rule for that, the one in the middle - but you can add as many as you need - to build the list of elements to process - steps:

- Clear List -> Texts - just in case there are no leftovers,

- Load Text Search - basic version of the Ctrl+F / Find/Change dialog,

- Mark as... - selects all elements on the specified list for further processing.

2nd Task - in full version, should be run using Rewind button, located in the middle - steps:

- Modify current selection -> Parent TextFrame - switches current selection from found text to TextFrame.

- Apply Object Style

 

In free version BatchMode is not available, so you can't use 2nd Task to process all elements on the bottom list - found results - automatically - but you can simulate BatchMode by double clicking on any cell in TYPE column - in this case "Found" text - which will  select object/text on the list - then you can select 2nd Task and click Play at the top to execute 2nd Task.

 

In short - BatchMode is doing this double clicking for you.

 

Steve Werner
Community Expert
Community Expert
September 25, 2024

It's definitely not built-in. As to whether some clever scripter or programmer has found out a way to do it, I've never heard of it.

Jonlin Creative
Inspiring
September 25, 2024

Thanks for your input, Steve! I use the Mastermatic script from ID Extras a lot, and (not knowing anything about scripting) it feels like it would be a similar task to create a script that does what I'm looking for. But again, I don't know scripting so maybe it's a different animal!