Metadata properties for linkfiles corrupted

Starting in Opus 13.22.1, metadata properties for linkfiles are corrupted.

For .url files, metadata.other.target_type returns an empty string.

For .lnk files, metadata.other is undefined or missing.

target_type will get corrected by turning on the column target, though not with 100% reliability. Fixing .lnk files takes a bit more fiddling.

To reproduce/demo, use this column:

function OnColumn(scriptColData) {
    var o = scriptColData.item.metadata.other;
    scriptColData.value = o ? o.target_type || '<none>' : '<no metadata>';
}
Set COLUMNSTOGGLE="scp:TargetType/TargetType(!,a,0)"

ColumnTargetType.js.txt

Thanks! That has been fixed for the next beta.

With Opus 13.22.9, the script column mentioned above now appears to work correctly most of the time. However, scripts that use target_type still fail quite frequently. I haven't found a reliable way to reproduce the issue, but here is a test script along with two examples:

var lst = DOpus.listers.lastactive;
var tab = lst.activetab;

for (var i = 0; i < tab.selected_files.count; i++) {
    var item = tab.selected_files(i);
    DOpus.Output('item:                            ' + item);
    DOpus.Output('item.metadata.other.target:      ' + item.metadata.other.target);
    DOpus.Output('item.metadata.other.target_type: ' + item.metadata.other.target_type);
    DOpus.Output('item.metadata.other.target_type: ' + (item.metadata.other.target_type == 'url'));
    DOpus.Output('');
}

Apologies! That should be fixed in the next beta.

Smooth sailing now with Opus 13.22.10 :+1: