Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

Files.SetTagNames

Sets the tags for a file/folder.

Component Version macOS Windows Linux Server iOS SDK
Files 3.5 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ❌ No
MBS( "Files.SetTagNames"; Path; Taglist )   More

Parameters

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

Result

Returns OK or error.

Description

Sets the tags for a file/folder.
Requires macOS 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 Char(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

This function checks for a license.

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


Files.SetReadOnly - Files.StandardizePath

💬 Ask a question or report a problem