Possible to copy iphone images with correct creation date, or rename to correct creation date?

You can use an add-in (ExifTool Custom Columns) if you want almost all metadata or a script column that reads the shell property System.Photo.DateTaken. Or Opus v13 - it provides a dialog for this :slight_smile:

Here's the column:

function OnInit(initData) {
    initData.name = 'SystemPhotoDateTaken';
    initData.version = '2023-10-25';
    initData.url = 'https://resource.dopus.com/t/possible-to-copy-iphone-images-with-correct-creation-date-or-rename-to-correct-creation-date/46634';
    initData.desc = 'Retrieves System.Photo.DateTaken from the Shell';
    initData.default_enable = true;
    initData.min_version = '12.0';
}

function OnAddColumns(addColData) {
    var col = addColData.AddColumn();
    col.name = 'SystemPhotoDateTaken';
    col.justify = 'left';
    col.type = 'datetime';
    col.autogroup = true;
    col.method = 'OnColumn';
}

function OnColumn(scriptColData) {
    var dateTaken = scriptColData.item.ShellProp('System.Photo.DateTaken');
    scriptColData.value = DOpus.TypeOf(dateTaken) == 'object.Date' ? dateTaken.FromUTC() : '';
}

:one: Save ColumnSystemPhotoDateTaken.js.txt to   ↓

%appdata%\GPSoftware\Directory Opus\Script AddIns

:two: Toggle the column with

Set COLUMNSTOGGLE="scp:SystemPhotoDateTaken/SystemPhotoDateTaken(!,a,0)"

You'll find the column in the Advanced Renamer as well.


How to use buttons and scripts from this forum