Skip navigation
Suchys
Currently Being Moderated

Modifying XMP metadata does not modify the document

Mar 28, 2011 3:36 PM

Another from couple questions which accumulated over time.

If I modify layer in document by adding or updating XMP metadata, the document itself is not modified (does not enable save), so far if document is closed without doing some other action which marks document as modified, data are lost.

Question: how to either force document to see changes in XMP meta or how to mark document as modified?

 

Code snippet:

     activeDocument.activeLayer.xmpMetadata.rawData = meta.serialize();

 

Thanks,

--Petr

 
Replies
  • Currently Being Moderated
    Mar 28, 2011 3:42 PM   in reply to Suchys

    Hi Petr,

     

    We have a bug open against Photoshop for this issue but in the meantime you can use this workaround:

     

    app.activeDocument.activeLayer.visible = app.activeDocument.activeLayer.visible

     

    Zak

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2011 3:44 PM   in reply to Suchys

    When you ask app-specific questions, you should really specify the app you are referring to.

     

    I'm guessing you are talking about Photoshop. This seems to be a scripting related question, and you'll probably get better answers on the Photoshop forum: http://forums.adobe.com/community/photoshop/photoshop_scripting

     

    Harbs

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points