Copy link to clipboard
Copied
I have a script that pushes the values of all paragraph style settings in an InDesign document to a CSV, but I can't get the numbered list format to export:
List type | List Type |
Numbered | A, B, C, D... |
What I get:
List type | Format |
Numbered | Not found |
Copy link to clipboard
Copied
Just get the value - it doesn't use enumerator - but returns it as a string.
I'm not doing Select...Case - yet it returns text values.
Maybe in ME / Japan version it will - so instead of default "Not found" - push the value.
break;
default:
arr.push(ps.NumberingFormat);
}
Copy link to clipboard
Copied
Or rather you should be using:
ps.numberingFormat
Copy link to clipboard
Copied
or ps.numberingStyle
?
Copy link to clipboard
Copied
or ps.numberingStyle
?
By @Stefan Rakete
numberingStyle is set of constants:
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#NumberingStyle.html#d1e107429
numberingFormat is a property of the "text".
Copy link to clipboard
Copied
numberingFormat |
NumberingStyle.ARABIC NumberingStyle.ARABIC_ABJAD NumberingStyle.ARABIC_ALIF_BA_TAH NumberingStyle.DOUBLE_LEADING_ZEROS NumberingStyle.FORMAT_NONE NumberingStyle.HEBREW_BIBLICAL NumberingStyle.HEBREW_NON_STANDARD NumberingStyle.KANJI NumberingStyle.KATAKANA_MODERN NumberingStyle.KATAKANA_TRADITIONAL NumberingStyle.LOWER_LETTERS NumberingStyle.LOWER_ROMAN NumberingStyle.SINGLE_LEADING_ZEROS NumberingStyle.TRIPLE_LEADING_ZEROS NumberingStyle.UPPER_LETTERS NumberingStyle.UPPER_ROMAN |
read/write |
Numbering format options. Can return: NumberingStyle enumerator or String. |
Copy link to clipboard
Copied
Thank you so much!! I was way over complicating it!
Copy link to clipboard
Copied
Find more inspiration, events, and resources on the new Adobe Community
Explore Now