XMP DefaultsSpecificToSerial="False" to "True" ??

Upload Adobe Bridge Scripts, Download Adobe Bridge Scripts, Support for Individual Adobe Bridge Scripts

Moderators: xbytor, DavideBarranca, Paul MR


XMP DefaultsSpecificToSerial="False" to "True" ??

Postby pedromarques » Tue Dec 10, 2013 10:41 am

How can this xmp preferences file be modified?

If I try to get values by parsing xml, I am unable to get the single attibutes...
My aim is to change by script crs:DefaultsSpecificToSerial="False" to "True"

<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.5-c002 1.148022, 2012/07/15-18:06:45 ">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" rdf:about="" crs:DefaultAutoTone="False" crs:DefaultAutoGray="True" crs:DefaultsSpecificToSerial="False" crs:DefaultsSpecificToISO="False" crs:DNGIgnoreSidecars="False" crs:NegativeCachePath="C:/Users/pedro.marques/AppData/Local/Adobe/CameraRaw/Cache/" crs:NegativeCacheMaximumSize="1.0" crs:NegativeCacheLargePreviewSize="1024" crs:JPEGHandling="OpenIfHasSettings" crs:TIFFHandling="OpenIfHasSettings"/>


XMP DefaultsSpecificToSerial="False" to "True" ??

Postby pedromarques » Tue Dec 10, 2013 1:01 pm

I've manage to change it and it works.
Now I am sure every camera raw editors are using our central color profiles.

Thanks to Philip Cord. Here his code:

#target bridge
var crsPrefs = new File( Folder.userData + "/Adobe/CameraRaw/Defaults/Preferences.xmp" );

function setMetadata( file){
if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
file.encoding = "UTF8";
file.lineFeed = "unix";
file.open("r", "TEXT", "????");
var xmpStr = file.read();
var xmpStr='';
var xmp = new XMPMeta( xmpStr );
xmp.deleteProperty("http://ns.adobe.com/camera-raw-settings/1.0/", "DefaultsSpecificToSerial");
xmp.setProperty("http://ns.adobe.com/camera-raw-settings/1.0/", "DefaultsSpecificToSerial","True");
file.encoding = "UTF8";
file.lineFeed = "unix";
file.write( xmp.serialize() );

Return to “Adobe Bridge Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest