I'm trying to put together a script that will add new index entries for names in a specific text box.
In the UI I can use the text tool, then use cmd+option+shift+] to add new index entry (reversed). I want to replicate this action.
I named the box "IndexNames" in the Layers palette. I want to select the contents and add new index entry (reversed).
Seems like something like this, but it's a bit of a mess:
var action = app.menuActions.itemByID(78099);
action.enabled && app.menuActions.itemByID(78099).invoke();
Can anyone help me with this task?
Basically I just need a script that will select the designated boxes and add new index entries for the contents. Could be done by name (in the layers palette) or maybe by character style if that's easier.