Getting Metadata information from unedited images (CS3, AS, JS)
I have tried in AppleScript and JavaScript to get picture captions using linkXmp.description.
It works when the picture has been edited in Photoshop, but not when it has just been imported into the page and nothing done to it ... The response is "No Metadata information available", an honest enough answer because it does not deny that the information might be there.
I have got a working AppleScript which goes to Photoshop, opens the image, gets the information, closes without saving and returns to InDesign to place an overlay on the picture with its caption information.The delay time involved in opening the image is irritating, however.
I initially tried this in AppleScript and when baulked read in this forum's archives about the edited vs. unedited problem.
So I headed over to the Photoshop Forum where a helpful chap gave me an AppleScript fragment for getting the caption information and a JavaScript fragment for getting the linkXmp.description in InDesign.
I have just finished adapting the JavaScript to work with a selected item on an InDesign page (learned a lot in the process). But in the end I was faced with the same brick wall I encountered using AppleScript ... if the pic ain't edited, no dice.
My Photoshopping friend seemd surprised I hadn't raised my difficulty in the InDesign Forum... which I am doing so now, with apologies to anyone who may have read me going on about it across the road.
So, is there an InDesign-only method of getting this caption information?
