Skip to main content
dublove
Legend
Nov 12, 2026 4:15 AM UTC
Answered

Is the English basic style name no longer a universal name in scripts?

Some default style English names seem to be irrelevant in other language versions.

Do I need to write a code for each language?
I remember in the Chinese version, it could be used like the following:

//myTab.appliedTableStyle = d.tableStyles.itemByName("[Basic Table]");
myTab.appliedTableStyle = d.tableStyles.itemByName("[No Table Style]");

Can it only be like this?

myTab.appliedTableStyle = d.tableStyles[0];
MyTab. pliedTableStyle=d.tableStyles.itemByName ("[无表样式]");

 

    Eugene TysonCorrect answer
    Community Expert
    Nov 12, 2026 4:32 AM UTC

    var d = app.activeDocument;

    // [No Table Style]
    myTab.appliedTableStyle = d.tableStyles[0];

    // [Basic Table]
    myTab.appliedTableStyle = d.tableStyles[1];

    There are other methods
     

     

     

    1 reply

    Eugene TysonCommunity ExpertCorrect answer
    Community Expert
    Nov 12, 2026 4:32 AM UTC

    var d = app.activeDocument;

    // [No Table Style]
    myTab.appliedTableStyle = d.tableStyles[0];

    // [Basic Table]
    myTab.appliedTableStyle = d.tableStyles[1];

    There are other methods
     

     

     

    Translate