I’m writing an export plugin and wanted to be able reference exported attachments from the exported text using Display Name as part of the reference, for example:
! [My latest picture] (photo-2021-03-08.jpg)
I can get the filename from the FileWrapper within an AttributeRun, but haven’t managed to discover where the text of the Display Name is held. The run text is blank, and the attachment Text object doesn’t seem to have it either.
In the case of linked images, I can get the filename from the run style link string, but the Display Name seems a bit hit and miss (mostly miss).
This is my first plugin so I hope I didn’t miss something obvious.
I see. Apparently, that specific property is not exposed in OmniJS API. However, it seems to appear when decompressing .outline file inside contents.xml.