Hello, I am doing an script to do the outline of all the text in the document.
But I have problem when I want to do that with text variables like page number or sections.... so that the values are not linked...
Does someone how can I solve the problem??
thanks in advance
In you case, You need to initially Text variable text convert to Text format, after you can convert to create outlines. Try the below JS code.
app.activeDocument.textVariables.everyItem().convertToText(); app.activeDocument.stories.everyItem().createOutlines ();