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

Convert all live captions to static captions (Easy way)

New Here ,
Feb 07, 2023 Feb 07, 2023

Copy link to clipboard

Copied

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

Views

319

Translate

Translate

Report

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

Copy link to clipboard

Copied

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();  
    };
}; 

 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Hi rob day!

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

 

 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

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