Skip to main content
Inspiring
November 3, 2022
Answered

How to remove all static captions from document?

  • November 3, 2022
  • 1 reply
  • 3788 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
Brainiac
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.

ht354Author
Inspiring
November 7, 2022

Hi Jeff, Here’s a compiled version of @brian_p_dts ‘s script with your style name. Does the compiled version work from your ID Scripts panel?

 

https://shared-assets.adobe.com/link/cc9edd53-e98a-4b1a-6a0d-63f3be3e2afc

 


Hi Rob,

I downloaded your compiled script and tossed it into the "Scripts Panel Folder" and ran it. I received the following error;

I am breaking the caption naming rules? Does the style  name

"PhotographCaptions" break any name conventions I am not aware of? I do have it in a Style Group. Does that figure into solving this problem? Does it need to be at the root level?

 

"