Skip to main content
Inspiring
November 3, 2022
Answered

How to remove all static captions from document?

  • November 3, 2022
  • 1 reply
  • 3828 views

I have inherited a project where most of the captions embedded in the images have been heavily edited. They all reside in Lightroom and have been placed into the document using Bridge. I now need to re-link the images, which is no problem, but I can't see myself manually removing 450 individual caption text boxes.

 

Is there a script or a command I've somehow missed that allows the bulk removal of all the captions?

This topic has been closed for replies.
Correct answer brian_p_dts

 I also get the error if I put the style in a group, @m1b ’s itemByName line should work.


Yeah, I suspected it was in a group. Should have mentioned it up high. Glad you got it working. Thanks @m1b and @rob day for the additional support. 

1 reply

James Gifford—NitroPress
Legend
November 3, 2022

Ah, yes, ID's caption feature, which is incredibly useful to... some tiny minority of those who work in shops with fully managed assets. 😛

 

Do the captions use a defined style that could be used as a search target? ETA: Or has a specific object style been applied to the caption boxes?

 

ht354Author
Inspiring
November 3, 2022

Yes, they use a single defined style and corresponding substyles using delineated character styles based on the en dash embedded into the captions.

I'd love to just knock them all out and then page by page re-add them which would bring in all the changes driven inot the "Caption" field.

m1b
Community Expert
Community Expert
November 3, 2022

Hi @ht354, it sounds possible. Could you please post an example .indd which includes an image file that has been modified with a different caption?

- Mark