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.FileInfo
Queries some file information.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Files | 4.3 | Yes | Yes | No | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Path | The native file path to the application. | $Path |
| Selector | Which value to query. | "Version" |
Result
Returns value or error.
Description
Queries some file information.This is intended for bundled app/plugin/framework files on Mac and on Windows for EXE/DLL files.
Possible selectors on Mac:
| Version | Version |
| ShortVersion | Short version |
| MinimumSystemVersion | Minimum OS X version required to launch app. |
| InfoString | Finder Info string. |
| ExecutableName | Name of executable file in bundle. |
| Identifier | Bundle Identifier |
Possible selectors on Win:
| Description | The file description. |
| Version | The file version. |
| InternalName | The internal name. |
| CompanyName | The company name. |
| LegalCopyright | The legal copyright string. |
| OriginalFilename | The original filename. |
| ProductName | The product name. |
| ProductVersion | The product version. |
| Copyright | Human readable copyright string. (New in 7.5) |
The file information is cached to queries with same file path will not reload values from file.
Examples
Queries information about FileMaker on Mac:
MBS("Files.FileInfo"; "/Applications/FileMaker Pro 13 Advanced/FileMaker Pro Advanced.app"; "Version")
MBS("Files.FileInfo"; "/Applications/FileMaker Pro 13 Advanced/FileMaker Pro Advanced.app"; "MinimumSystemVersion")
MBS("Files.FileInfo"; "/Applications/FileMaker Pro 13 Advanced/FileMaker Pro Advanced.app"; "ExecutableName")
MBS("Files.FileInfo"; "/Applications/FileMaker Pro 13 Advanced/FileMaker Pro Advanced.app"; "Identifier")
Queries some information about DebugView on Windows:
MBS("Files.FileInfo"; "C:\Users\Christian\Desktop\Dbgview.exe"; "Version")
MBS("Files.FileInfo"; "C:\Users\Christian\Desktop\Dbgview.exe"; "Description")
See also
Blog Entries
FileMaker Magazin
Release notes
- Version 7.5
- Added selector CopyRight for Files.FileInfo to query copyright string on Mac.
Created 18th August 2014, last changed 11st October 2017
Files.FileExtension - Files.FileKind
Feedback: Report problem or ask question.
Links
MBS Xojo tutorial videos