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

Convert all live captions to static captions (Easy way)

New Here ,
Feb 07, 2023 Feb 07, 2023

Help!

 I'm book editor.

I have been seen different answers. People, you're amazing. 

But im of a lower level of ID. Can anyone explain me where I have to write the formula to convert all the caption of the same document to static captions?

Thank you all!

 

app.documents[0].textVariables.everyItem().convertToText();

TOPICS
Scripting
540
Translate
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 ,
Feb 07, 2023 Feb 07, 2023

Hi @Nuria28295192ksa4 , For existing captions,  I think you will have to invoke the Convert To Static Caption menu item. Try this:

 

var tf = app.activeDocument.pages.everyItem().textFrames.everyItem().getElements()
var mi =  app.menuActions.itemByID(132655)
for (var i = 0; i < tf.length; i++){
    app.select(tf[i])
    if(mi.enabled){  
        mi.invoke();  
    };
}; 

 

Translate
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 ,
Feb 22, 2023 Feb 22, 2023

Hi rob day!

I can't save the action. It said sintaxys error. 

 

 

Translate
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 ,
Feb 22, 2023 Feb 22, 2023
LATEST

Are you saving the code in a plain text editor with the .jsx extension, moving the file into your InDesign Scripts folder, and running from the Scripts panel?

 

Applications⁩ ▸ ⁨Adobe InDesign 20XX⁩ ▸ ⁨Scripts⁩ ▸ ⁨Scripts Panel⁩

 

Can you show a screen capture of the error?

Translate
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