Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Sets the tags for a file/folder.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Files 3.5 Yes No Yes, macOS only No No
MBS( "Files.SetTagNames"; Path; Taglist )   More


Parameter Description Example value
Path The native path to the file. "/Users/cs/Desktop/test.txt"
Taglist The list of tags names, separated by newline character. "Hello World"


Returns OK or error.


Sets the tags for a file/folder.
Requires Mac OS X 10.9.
This function needs a native path. Please use Path.FileMakerPathToNativePath function in order to convert a FileMaker style path to a native path.
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. Those should appear escaped as \n in the taglist.

See also

Blog Entries

Created 18th August 2014, last changed 18th August 2014

Files.SetPosixPermissions   -   Files.Unmount

Feedback: Report problem or ask question.

MBS Xojo Plugins