Question
Add TextVariable to TextFrame
How do I add a TextVariable to a TextFrame in InDesign?
I am creating the TextVariable like this.
var textVariable = app.activeDocument.textVariables.add({name: "My Name"});
I'm coming from Illustrator scripting where you have a content variable attached to each text frame object. I'm confused on how to link these text variables to text frames in InDesign.