Skip to main content
AxemanGraphics
Participating Frequently
September 29, 2023
Question

Bridge is not writing Metadata to TIFF Files!

  • September 29, 2023
  • 1 reply
  • 2185 views

Hi guys, hoping you can help me!

Up until today this has not been a problem, and things have always written fine.

I have multiple folders of TIFF images that I am trying to update Metadata. Files are all ~150-200Mb.

When I enter the metadata and hit return, I do not get the usual 'flicker' at the status bar, but metadata looks like it has saved. Clicking off the file and back on again, and everything entered has not saved. There are no seperate XMP files created or anything like tht, it simply does not stick to the file!

This is happening with multiple files, scanned and saved on different days, but is sporadic, in that, some files DO save the metadata, so it is not a blanket rule. Files are not locked (I checked) or otherwise inaccessible, as I have batch unlocked everything...

 

Things I have already tried:
Resetting Bridge to factory settings / erasing cache etc
Trying a different version of Bridge (I use 2020, I also tried 2022 - I cannot upgrade further, as I am on a MacBook Pro 2012 - OOLLLDDDD!!!)
Rebooting my MacBook 3 times
Logging out and back in again
Moving files to a different location (hey, lets rule out a locked folder option?)

 

The ONLY fix I have discovered (but hopefully only a temporary fix!) is to open each file individually in Photoshop, update one field of metadata in the File Info, then exit and save the file. This causes Metadata in Bridge to become saveable once more. I have over 3000 files to do, so hopefully there is a better solution!


Please help me ObiWan! You're my only hope!! 🙂

This topic has been closed for replies.

1 reply

Stephen Marsh
Community Expert
Community Expert
September 30, 2023

@AxemanGraphics 

 

What if you selected 2 or more problem files for testing, then added different metadata, such as a label, or keyword or rating? Does this then "fix" the metadata like opening/adding metadata via the File > File Info method?

 

If not, I can help you with testing via ExifTool, where you can easily batch-update metadata entries.

AxemanGraphics
Participating Frequently
September 30, 2023

I've tried fixing multiple files at the same time, but neither hold their data. 
I have the exiftool but haven't tried it yet

 

i have literally thousands of files (~85Gb!) so finding a solution is my number one priority. 🙂

AxemanGraphics
Participating Frequently
October 1, 2023

The following Photoshop script will batch all TIFF files at the top/root level of a selected folder, adding the word "test" in the description metadata (replacing any existing description). This writes the metadata directly to the file without opening the file into Photoshop, so it should be very fast.

 

#target photoshop;

var inputFolder = Folder.selectDialog("Please select folder to process");
if (inputFolder != null) {
    var fileList = inputFolder.getFiles(/\.(tif|tiff)$/i);
    for (var a in fileList) {
        setDescription(fileList[a], "test");
    }
}

function setDescription(file, descStr) {
    if (!ExternalObject.AdobeXMPScript) ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
    var xmpFile = new XMPFile(File(file).fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE);
    var xmp = xmpFile.getXMP();
    xmp.deleteProperty(XMPConst.NS_DC, "description");
    xmp.setLocalizedText(XMPConst.NS_DC, "description", null, "x-default", descStr);
    if (xmpFile.canPutXMP(xmp)) {
        xmpFile.putXMP(xmp);
    }
    xmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
}

 

If the previous script doesn't work for you, then we can open the files into Photoshop, add the metadata to File > File Info and then save/close the file, but that would be slower. This adds the keyword "test" replacing existing keywords:

 

#target photoshop;

main();

function main() {
    var inputFolder = Folder.selectDialog("Select the folder to process:");
    if (inputFolder === null) return;

    // Add or remove file extensions as required
    var fileList = inputFolder.getFiles(/\.(jpg|jpeg|tif|tiff|psd|psb|webp|png)$/i);

    for (var i in fileList) {
        open(fileList[i]);
        var theKey = ['test'];
        activeDocument.info.keywords = theKey;
        app.activeDocument.close(SaveOptions.SAVECHANGES);
    }
}

 

Both of these scripts are just hacks to see if bulk updating the metadata in Photoshop corrects the misbehaviour in Bridge, which you shouldn't need to do.


You lost me

i dont know what that code is or where it goes...