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.FileUTITypes
Queries uniform type identifiers for this file.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Files | 2.9 | Yes | No | No | Yes, macOS only | No |
MBS( "Files.FileUTITypes"; Path ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| Path | Native path to the file to check. | "C:\test\me.jpg" |
Result
Returns file types as text or error.
Description
Queries uniform type identifiers for this file.For example a rtf file has the type public.rtf and going up the chain of types, it also has "public.text, public.data, public.item and public.content. A jpg image has types public.jpeg, public.image, public.data, public.item and public.content. So if you look for "public.image" in the types, you can identify that the file is an image file.
Examples
Queries types of a file
MBS( "Files.FileUTITypes"; "C:\test.txt" )
Example Databases
Blog Entries
FileMaker Magazin
Created 18th August 2014, last changed 18th August 2014
Files.FileSize - Files.FolderSize
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins