Reply To: Script to convert all text variables

#14335625

Hi guys.
I’m new to InDesign scripts.

I tried to copy and paste the code and it does not work. I paste it in a plain text document changing the extension to .jsx Tried tweaking and deleting the word “try” at the beginning, the semicolon at the end and other digits but nothing works. I get an error message.

This is the code I have been using (the same that tomaxxi wrote)

try{
for(var i = 0; i < app.documents.length; i++){
app.activeDocument.stories.everyItem().textVariableInstances.everyItem().convertToText();}
}catch(e){alert(“Something gone wrong!r” + e);};

What am I doing wrong? Can someone link a script document so I can downloaded it please. :)

This article was last modified on February 1, 2021

Comments (0)

Loading comments...