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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Files.GetTagNames
Queries names of the tags assigned to the file/folder.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Files | 3.5 | Yes | No | No | Yes, macOS only | No |
MBS( "Files.GetTagNames"; Path ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| Path | The native path to the file. | "/Users/cs/Desktop/test.txt" |
Result
Returns OK or error.
Description
Queries names of the tags assigned to the 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 chr(10) followed by a number to indicate which label color is used for compatibility to older OS X versions. Those appear escaped as \n in the result.
You can use Files.GetFinderLabel to read label number.
Examples
Queries tag names:
Set Variable [$r; Value:MBS( "Files.GetTagNames"; "/Users/cs/Desktop/todo.rtf")]
See also
Blog Entries
- MBS FileMaker Plugin 3.5 for OS X/Windows - More than 2100 Functions In One Plugin
- MBS Filemaker Plugin, version 3.5pr2
FileMaker Magazin
Created 18th August 2014, last changed 10th August 2020
Files.GetPosixPermissions - Files.IsHidden
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins