Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

Files.FileInfo

Queries some file information.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Files 4.3 Yes Yes Yes No Yes

MBS( "Files.FileInfo"; Path; Selector )

Parameters

Parameter Description Example value
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:
VersionVersion
ShortVersionShort version
MinimumSystemVersionMinimum OS X version required to launch app.
InfoStringFinder Info string.
ExecutableNameName of executable file in bundle.
IdentifierBundle Identifier

Possible selectors on Win:
DescriptionThe file description.
VersionThe file version.
InternalNameThe internal name.
CompanyNameThe company name.
LegalCopyrightThe legal copyright string.
OriginalFilenameThe original filename.
ProductNameThe product name.
ProductVersionThe product version.
CopyrightHuman 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


Files.FileExtension   -   Files.FileKind

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins