Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Problems accessing metadata

New Here ,
Aug 19, 2005 Aug 19, 2005
I am trying to get a particular metadata property from a file into Bridge JavaScript. I can see many metadata properties in JavaScript and the one I want is listed in the metadata panel in Bridge, but I can't see to figure out how to access it programmatically.

The one I'm interested in is the RAW filename. It's my understanding that this code should work for accessing it, but it doesn't.

var metaData = thumb.metadata;
metaData.namespace = "http://ns.adobe.com/camera-raw-settings/1.0/";
var acrRawFileName = metaData.RawFileName;

But, even though I can see this property in Bridge, all I get in JavaScript is an empty string. I can access other properties in other namespaces like DateTimeOriginal in the EXIF namespace.

Anyone know how to programmatically access the original raw filename in the camera raw metadata namespace?

--John
TOPICS
Scripting
408
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 20, 2005 Aug 20, 2005
John,

What you have written there should work.

Can you get the values of any other camera-raw-settings?

The test files I have here do not have the raw file name. If you could send along a couple, I can try them later tonite. I can access all the other camera raw settings.

Please email one or two (separately please - less than 5 MB per image) to rstucky@starband.net

Thanks

Bob
Adobe WAS Scripting
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 20, 2005 Aug 20, 2005
LATEST
It's my mistake. It appears that that property is only populated "after" ACR saves a change to the file, so it's only on some of my RAW files. For the ones where it is present, the previous code works.

I was trying to use this propery as a "master file ID" so I can track subsequent derivative versions because this property is present in PSDs or JPEGs derived from this RAW file. I think I can just add some logic that if this field is empty and the filetype is RAW, then just use the filename itself as the master file ID. Thanks.

--John
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines