Skip to main content
Participant
September 29, 2005
Question

Sorting photos from 2 camera shoot by time when one camera's clock is different

  • September 29, 2005
  • 1 reply
  • 284 views
I have 800 photos from two different cameras from a wedding shoot. One of the camera's clock was off by 1hr and 11mins. What would be the fastest/best way to append the metadata for that camera's files so I can sort by date/time file created? Can I create a script that would append the time of every file selected by the hour and eleven minutes? How would you accomplish this?

Thanks,
AL
This topic has been closed for replies.

1 reply

Known Participant
September 29, 2005
AL

AFAIK, there is no way to set the creation date of a file other than to execute a copy.

As for setting the DateTimeOriginal EXIF property, that's a pretty straightforward script.

If you'd like to take a shot at it, I'll help you where I can. If you need someone to write it, perhaps one of the scripters around here will take it on for you.

The basic process would be something like:

var kids = app.document.thumbnail.children;
for ( var i = 0; i < kids.length; i++ ) {
var mdObject = kids[ i ].synchronousMetadata;
mdObject.namespace = "http://ns.adobe.com/eixf/1.0/";
var d = new Date( mdObject.DateTimeOriginal );
d = new Date( Date.parse( d ) + (1000*60*71) );
// at this point - format the date -
// then set it
mdObject.DateTimeOriginal = dateString;
}

Bob
Adobe WAS Scripting