Property for Detecting AI-Generated ALT Text
The latest versions of InDesign (21) include a feature for generating alternative text for images. Two new properties have been added to the scripting DOM for this purpose:
ObjectExportOptions.altTextGenerationError
ObjectExportOptions.altTextCropSyncRect
Great, we can use these to determine whether an error occurred while generating the ALT text or as the image crop was set during generation.
What's still missing?
However, as far as I know, we don’t have a property to determine WHETHER the text was generated by AI. I think this property should only be set to true if the text was generated by AI and has not yet been edited by the user. Just like that of the property altTextCropSyncRect.
And a property that indicates whether the “AI generated content” label is set.
Why would this property be useful?
It would allow us, as developers, to remind users to double-check this AI-generated text for consistency.
What might that property look like?
Maybe:
ObjectExportOptions.aiGenerated (read/write)
ObjectExportOptions.labeledAsAIGenerated (read/write)