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
Queries properties for a file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
MetaDataQuery | 8.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |
Parameter | Description | Example |
---|---|---|
Path | The native file path to the file to check. | "/Users/cs/Desktop/sample.pdf" |
Returns JSON or error.
Query download URL of file:
Set Variable [ $path ; Value: "/Users/cs/Downloads/test.html" ]
Set Variable [ $json ; Value: MBS( "MetaDataQuery.AttributesForFile"; $path) ]
Set Variable [ $link ; Value: MBS("JSON.GetPathItem"; $json; "kMDItemWhereFroms¶0") ]
Show Custom Dialog [ "Link" ; $link ]
Query song details:
MBS( "MetaDataQuery.AttributesForFile"; "/Users/cs/Music/iTunes/iTunes Music/ABBA/ABBA_ Gold - Greatest Hits/16 One of Us.m4p" )
This function checks for a license.
Created 21st December 2017, last changed 11st August 2018
MessageComposer.disableUserAttachments - MetaDataQuery.Close