Skip to main content
dublove
Legend
May 11, 2026
Answered

How to open the "Character Styles" option panel?

  • May 11, 2026
  • 2 replies
  • 35 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.

    Correct answer Manan Joshi

    @dublove you are changing your question everytime. First you said you want to open Character Style panel, in the post heading you said Style options. Now you are saying New Character Style dialog. Be sure what you want. I am listing all options below

    Open Character Style Panel

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

    Open Style Options of Character Style Panel. For this to work a style should be selected on the panel

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

    To open new character style dialog

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

    Regarding the ID’s i am not sure they are available as some documentation. You need to traverse the menuActions to get them

    2 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