The module ExtendedAttributesMBS

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

The module ExtendedAttributesMBS

module ExtendedAttributesMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
module Files MBS MacOSX Plugin 12.5 ✅ Yes ❌ No ✅ Yes ✅ Yes All
The module for working with extended attributes.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.rtf")

// keys starting with "com.apple.metadata:" are indexed by Spotlight
call ExtendedAttributesMBS.SetAttribute(f, "com.apple.metadata:test", "testvalue")

Linux support added for plugin version 16.4.
For Windows, please use LargeBinaryStreamMBS class to read/write streams.

Constants

Constant Value Description
kAttributeNameFinderComment "com.apple.metadata:kMDItemFinderComment" The attribute name for the Finder Comment.
kAttributeNameFinderInfo "com.apple.FinderInfo" The attribute name for the Finder Info.
kAttributeNameResourceFork "com.apple.ResourceFork" The attribute name for the resource fork.

Flags

Constant Value Description
kCreate 2 Fail if the named attribute already exists.
kNoDefault 16
kNoFollow 1 Do not follow symbolic links. ListAttributes normally lists attributes of the target of path if it is a symbolic link. With this option, ListAttributes will list attributes of the link itself.
kNoSecurity 8
kReplace 4 Fail if the named attribute does not exist. Failure to specify kReplace or kCreate allows creation and replacement.
kShowCompression 32 ListAttributes will list HFS Plus Compression extended attribute(s) (if present) for the file referred to by path.

Blog Entries

Xojo Developer Magazine

Videos


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


💬 Ask a question or report a problem