Okay, not so hard ☺
I have now tried to use this code: https://community.adobe.com/t5/photoshop-ecosystem-discussions/hide-camera-raw-settings-in-jpeg-metadata/m-p/10306319#M225585
I put it in a txt file, renamed it to remCRS.jsx, put it in the Bridge startup script folder, restarted Bridge, said yes to the script prompt and it's now showing up in the tools menu, but nothing happens when I run it (choosing a file and pressing the menuitem Remove camera raw metadata.
I wonder what is wrong?
The change in forum software broke some script code posted before the forum software was updated. Try this:
// https://forums.adobe.com/message/9758205#9758205
#target bridge
if( BridgeTalk.appName == "bridge" ) {
remCRS = new MenuElement("command", "Remove Camera Raw Metadata", "at the end of Tools");
}
remCRS.onSelect = function () {
if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
var sels = app.document.selections;
for (var a in sels){
var thumb = new Thumbnail(app.document.selections[a]);
var md = thumb.synchronousMetadata;
var xmp = new XMPMeta(md.serialize());
if(thumb.hasMetadata){
XMPUtils.removeProperties(xmp, XMPConst.NS_CAMERA_RAW, "", XMPConst.REMOVE_ALL_PROPERTIES);
var updatedPacket = xmp.serialize(XMPConst.SERIALIZE_OMIT_PACKET_WRAPPER | XMPConst.SERIALIZE_USE_COMPACT_FORMAT);
thumb.metadata = new Metadata(updatedPacket);
}
}
};
I have updated the code in that old topic too.