KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: FileClass .getAppInfo() on Mac
PRODUCT: 4D | VERSION: 19 | PLATFORM: Mac & Win
Published On: December 12, 2022

The File command returns an object of the FileClass that provieds various functions and properties regarding the specified file(s).

One function of the file class that can be misconstruded due to its name is the .getAppInfo() function. This function returns the contents of an application information as an object. However, it must be performed on the proper type of file. The file types compatible are .exe, .dll, and .plist. While the name of the function has "App" in it, the function will not work on Mac ".app" files. On Mac the function should be performed on a .plist file.