Skip to main content
dublove
Legend
May 11, 2026
Answered

How to open the "Character Styles" option panel?

  • May 11, 2026
  • 21 replies
  • 86 views

How to open the “Character Styles” panel?
I found this:

try {
    app.scriptMenuActions.itemByID(8481).invoke();
} catch (e) { $.writeln(e.message) };


But I don’t know where to look up “itemByID” for character styles.

    21 replies

    Community Expert
    May 11, 2026

    You mentioned Style options in the post heading so if you want that then try the following code

    app.scriptMenuActions.itemByID(8453).invoke();

     

    -Manan
    dublove
    dubloveAuthor
    Legend
    May 11, 2026

    Error message: Action not enabled.
    Where can I find information about 8453?

    Community Expert
    May 11, 2026

    For this option to be enabled you should have a editable character style enabled on your panel. There is no extra information about this. Check your panel if the option is enabled then execute this code and it should work.

    -Manan
    Community Expert
    May 11, 2026

    You could do the following

    app.panels.itemByName("Character Styles").visible = true

     

    -Manan
    dublove
    dubloveAuthor
    Legend
    May 11, 2026

    Hi ​@Manan Joshi 

    app.panels.itemByName("Character Styles").visible = true

    What is this?

    It seems you misunderstood my question.
    Am I supposed to open the “New Character Style” panel?
    I'd like to know where I can find the “8481” in `itemByID(8481)`?

    Community Expert
    May 11, 2026

    You want to open the Character Styles panel right? If so, then the code I gave should work. Test it once and let me know

    -Manan