I'm developing an Excel workbook meant to be operational in both macOS and Windows, and writing underlying code in VBA. So far I have been able to do everything in both platforms (with conditional compilation), but I have just run into something that doesn't seem to have an equivalent.

I need to fetch the tags list of a photo image file for cataloging and statistical purposes. Now there appears to be some terminology problems with the word "tag" in this context. When I refer to "tags", most folks think I'm talking about the EXIF data for the photograph or music file data. Nope, I'm referring to the Finder tags (which can be considered "keywords") that can applied to any file on the Mac.

Windows also has keyword tags. Under Windows, I can use the VBA function "[FolderName].GetDetailsOf" and specify an index of 18 to return the file's tag list. The code looks like this:
   Dim myShell As New Shell32.Shell
    Dim myFolder As Shell32.Folder
    Dim myFile As Shell32.FolderItem
'
    Set myShell = CreateObject("Shell.Application")
    Set myFolder = myShell.Namespace(FolderPath)
    Set myFile = myFolder.Items.Item(FileName)

    With myFolder
        myArray(1) = .GetDetailsOf(.Items.Item(FileName), 2)    ' Item Type
        myArray(2) = .GetDetailsOf(.Items.Item(FileName), 9)    ' Perceived Type
        myArray(3) = .GetDetailsOf(.Items.Item(FileName), 18)   ' Tags
    End With
I haven't figured out if there's any equivalent in Mac Excel VBA.

Currently, I'm shelling out to a command line app named, oddly enough, "tag" (available in Github), that writes the full pathname and tag list of each file in a specified folder (with optional recursion) to a text file, which is then imported to a worksheet. It works satisfactorily, but I'd like to make my Mac and Windows code base as similar as possible.

Any suggestions would be welcome.