Lightroom 5.2 (RC) SDK: photo:saveMetadata() sometimes has "unknown file i/o error" when it shouldn't.

  • 1
  • Problem
  • Updated 5 years ago
Here it is:

After importing a newly created jpeg image (via catalog:addPhoto method), which has never been selected, one can not invoke photo:saveMetadata() without a delay after programmatic selection, otherwise the "unknown file i/o error" occurs. If one waits for a second or so after the selection, then there is no error.

Note: it does no matter how long you wait *before* selection, i.e. it's not about waiting for something to happen prior to selection, it's about something that needs to happen after first selection and before photo:saveMetadata is called, which takes some time.

This problem is repeatable.

If using keyboard injection (e.g. sending "Ctrl-S" via auto-hotkey) to invoke the metadata save op instead of photo:saveMetadata(), such problem does not occur.

win7/64 Lr5.2RC (haven't tried on Mac, or with file-types other than jpeg)

Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 370 Reply Likes

Posted 5 years ago

  • 1

Be the first to post a reply!