FolderItem methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem