.osp and meta tags

It would appear that osp files do not support metadata tags.
Test code plus sample files and diagnostic output as shown below.
I'm running Opus v11.4.3.

[code]@language VBScript

Dim items, item, i, meta

Set items = DOpus.FSUtil.ReadDir("C:\Relay\Relay", False)

Do While Not (items.complete)
Set item = items.Next
If Not (item.is_dir) Then
Set meta = item.metadata
If meta.tags.count > 0 Then
DOpus.Output "Item = " & item & " tags.count = " & meta.tags.count
For i=1 To meta.tags.count
DOpus.Output "tag(" & i & ") " & meta.tags(i-1)
Next
End If
End If
Loop

DOpus.Output "Done"[/code]


Regards, AB

I have found the same error with a .7z file.

You need this check before accessing any of the metadata object's properties:

If (meta <> "none") Then
...
End If

[quote="leo"]You need this check before accessing any of the metadata object's properties:

If (meta <> "none") Then
...
End If[/quote]
The (meta <> "none") test is FALSE for .osp, 7z, zip (tested) and presumably for other untested archive types. Per my example in the screen grab above, the .osp file does have an associated tag. Is this not considered to be metadata?

Regards, AB

Metadata not being returned for archives was a bug which we've just fixed for the next update.