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.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4    Statistic  

Files.FileUTITypes

Queries uniform type identifiers for this file.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Files 2.9 Yes No Yes, macOS only No No

MBS( "Files.FileUTITypes"; Path )

Parameters

Parameter Description Example value
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

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


Files.FileSize   -   Files.FolderSize

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins