Platforms to show: All Mac Windows Linux Cross-Platform

Back to FolderItem class.

FolderItem.TagNamesMBS as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Files MBS MacCF Plugin 13.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Queries tag names for a file or folder.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.xojo_binary_project")
dim Tags() as string = f.TagNamesMBS
MsgBox "Tags: "+Join(tags, EndOfLine)

Requires Mac OS X 10.9 or newer.
Optionally provides error information in CFErrorMBS object.
Please note that some tags may include chr(10) followed by a number to indicate which label color is used for compatibility to older OS X versions.

See also:

Some examples using this method:

FolderItem.TagNamesMBS(byref e as CFErrorMBS) as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Files MBS MacCF Plugin 13.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Queries tag names for a file or folder.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.xojo_binary_project")

dim ce as CFErrorMBS
dim Tags() as string = f.TagNamesMBS(ce)

if ce <> nil then
MsgBox "Failed: "+ce.Description
else
MsgBox "Tags: "+Join(tags, EndOfLine)
end if

Requires Mac OS X 10.9 or newer.
Optionally provides error information in CFErrorMBS object.
Please note that some tags may include chr(10) followed by a number to indicate which label color is used for compatibility to older OS X versions.

See also:

Some examples using this method:

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...