Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

MDItemMBS.AttributeBoolean(name as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Spotlight MBS MacOSX Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the value for this attribute.

Feedback, Comments & Corrections

MDItemMBS.AttributeDouble(name as string) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Spotlight MBS MacOSX Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the value for this attribute.

Feedback, Comments & Corrections

MDItemMBS.AttributeNames as string()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Spotlight MBS MacOSX Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns an array containing the attribute names existing in the metadata item.
Example:
dim item as new MDItemMBS(SpecialFolder.Desktop)

MsgBox join(item.AttributeNames, EndOfLine)
Notes: Available in Mac OS X version 10.4 and later.

Feedback, Comments & Corrections

MDItemMBS.AttributeString(name as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Spotlight MBS MacOSX Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the value for this attribute.
Example:
dim item as new MDItemMBS(SpecialFolder.Desktop)

MsgBox item.AttributeString(item.kMDItemFSName)

Feedback, Comments & Corrections

MDItemMBS.AttributeStringArray(name as string) as string()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Spotlight MBS MacOSX Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the value for this attribute.

Feedback, Comments & Corrections

MDItemMBS.Constructor(path as folderitem)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Spotlight MBS MacOSX Plugin 9.6 Yes No No Yes, macOS only No
Function: Creates an MDItem object for a file at the specified path.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.rtf")
dim m as new MDItemMBS(f)

MsgBox m.DisplayName
Notes:
path: A path to the file from which to create the MDItem.

Available in Mac OS X version 10.4 and later.

Feedback, Comments & Corrections

MDItemMBS.GetAttribute(name as string) as Variant
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Spotlight MBS MacOSX Plugin 9.7 Yes No No Yes, macOS only No
Function: Returns the value of the given attribute for the item.
Notes:
name: The name of the desired attribute.

A variant, or nil on failure, or if the attribute does not exist, of if the attribute is not readable.

Feedback, Comments & Corrections

MDItemMBS.GetAttributes as dictionary
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Spotlight MBS MacOSX Plugin 17.2 Yes No No Yes, macOS only No
Function: Queries all attributes with all names and values.

See also:

Feedback, Comments & Corrections

MDItemMBS.GetAttributes(names() as string) as dictionary
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Spotlight MBS MacOSX Plugin 9.7 Yes No No Yes, macOS only No
Function: Returns the values of the given attributes for the item.
Notes:
names: An array of the names of the desired attributes.
A dictionary where the keys are the attribute names, and the values are the attribute values, or nil on failure. If an attribute does not exist, or is unreadable, there will be no key-value pair for it in the dictionary.

See also:

Feedback, Comments & Corrections

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





Links
MBS Xojo Plugins