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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

Icon.GetIcon

Queries the Finder icon for the file or folder with the given path.

Component Version macOS Windows Linux Server iOS SDK
QuickLook Files 2.3 ✅ Yes ✅ Yes ❌ No ✅ Yes, on macOS and Windows ❌ No
MBS( "Icon.GetIcon"; Path; Size )   More

Parameters

Parameter Description Example
Path The path to the file or folder. "/Applications"
Size The size of the icon picture you'd like to have. Suggested range is from 16 to 512 pixel. 512

Result

Container value.

Description

Queries the Finder icon for the file or folder with the given path.
Size specifies the icon size from 16 to 512 pixel. The container value returned includes PNG data with alpha, JPEG preview, filename and size.
Added Windows support in plugin version 4.2.
On Mac Server this may not work well as the Server user account has no icon database.

See also Icon.GetIconWithQuickLook.

Examples

Queries icon of iPhoto app:

MBS( "Icon.GetIcon"; "/Applications/iPhoto.app"; 512 )

See also

Release notes

Example Databases

Blog Entries

FileMaker Magazin

Created 18th August 2014, last changed 29th October 2018


Icon.ClearIcon - Icon.GetIconWithQuickLook

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins

Start Chat