How do I get the caption (Description) out of an image's metadata?
Taking a break from a monstrous project that has had me tied up for days, I have embarked upon what I thought would be a bit of light relief (hah!).
A colleague asked me for an easy way to get captions into InDesign. So I started scripting there, asking for the "description of the link xmp".
This was not forthcoming and a search of the InDesign scripting forum yielded the information that in order to get this information it was necessary to open the doc in Photoshop, save it and re-link. This indeed does work, but it is a waste of time in the file-saving stage and also degrades the image, as we have a jpg workflow.
So I thought that if I was going to have to got to Photoshop anyway, why not have the script go straight there, open the doc, ask for the description and close without saving?
Photoshop so far has jealously guarded its XMP information.
In Applescript I ask go "set theData to raw data of XMP metadata of document 1" and there it is in the event log, but in forbidding red type. I try adding "as string" and it appears twice, once in friendly black type, enclosed in quotes, and then the red stuff. However I find myself refused access to the information in the variable.
AS or JS solutions welcome...
