Critical Bug Report: InDesign 2024 ME ExtendScript Fails to Set RTL Properties
We are experiencing a severe and persistent bug in Adobe InDesign 2024 Middle Eastern Edition (ME) where basic Right-to-Left (RTL) text properties cannot be set via ExtendScript, even though the same actions work manually through the UI.
This issue effectively prevents any automation or workflow scripting for Farsi/Arabic content, despite using the designated ME version.
- Environment & Problem Summary Detail Value InDesign Version 2024 (Middle Eastern/ME Edition) Issue Scripting fails to set paragraphDirection, storyDirection, and justification to RTL values. Root Cause The ExtendScript Object Model exhibits a fundamental contradiction (a "Catch-22") when trying to set RTL properties.
صادر کردن به «کاربرگنگار»
The core problem is that the application does not accept either of the two standard methods for setting an enumerated property: the string name or the numeric ID.
- Technical Breakdown and Error Logs The script attempts to set the properties to their RTL values (e.g., Farsi/RTL). We have confirmed the official numeric values for these properties:
RIGHTTOLEFT_DIRECTION = 1920290924
RIGHT_ALIGNMENT = 1852796515 (for justification workaround)
WORLDREADYPARAGRAPHER = 1969449826
The following errors were logged when attempting to apply the settings:
A. Failure to Set Justification (Alignment)
The script attempted to use the numeric value for Right Alignment as a workaround, but was rejected.
Property Targeted: basicParagraphStyle.justification
Value Used: 1852796515 (Right Alignment numeric value)
Error Received: Script Alert: Invalid value for set property 'justification'. Expected Justification enumerator, but received 1852796515.
Conclusion: The application refuses the numeric ID for justification, demanding the non-working Enum name (ParagraphAlignment.RIGHT_ALIGN).
B. Failure to Set Paragraph Direction (The Core Issue)
Previous tests showed that when attempting to set paragraphDirection using the numeric value, a similar error occurred:
Property Targeted: basicParagraphStyle.paragraphDirection
Value Used: 1920290924 (RTL Direction numeric value)
Error Received (from earlier test): Invalid value for set property 'paragraphDirection'. Expected ParagraphDirectionOptions enumerator, but received 1920290924.
Conclusion: The application insists on the Enum name (ParagraphDirectionOptions.RIGHTTOLEFT_DIRECTION) but simultaneously fails to recognize or accept that Enum when used in the script.
C. Failure to Set Composer
In earlier tests, even fundamental properties like the composer failed, suggesting a deep configuration issue:
Property Targeted: basicParagraphStyle.composer
Error Received (from earlier test): TextComposer is undefined
Conclusion: This confirms a failure to recognize even basic object names for text engines.
- Final Conclusion and Call to Action The consistent failure across multiple RTL-specific properties, coupled with the application's rejection of both standard methods (Enums and numeric IDs), points to a critical bug in the ExtendScript API implementation of the InDesign 2024 ME edition.
Action Required:
Please investigate the internal mechanism that handles the conversion of Enums/Numeric IDs for RTL properties (specifically paragraphDirection, storyDirection, and justification) in the ExtendScript Object Model for InDesign ME versions.
The bug must be patched to ensure that these properties can be reliably set using either the documented Enum names or their corresponding numeric IDs.
This fix is essential for any developer relying on automation for Middle Eastern publishing workflows. Thank you for your urgent attention to this matter.
