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
[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?