[JavaScript] Run action on object?
I know it is possible to run actions from scripts using doScript(), but is there a way to run the action on an object using its variable name? If there is not a method for this, how do I select an object using its variable name so that when I subsequently call doScript, the action is executed on the selected object?
Basically, I would like to do the following, but apparently I can't call select on a Text Frame object.
myTextFrame.select();
app.doScript("Format Text", "Text Actions")
Thanks!