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.5
11.0
11.1
11.2
11.3
11.4
11.5
12.0
12.1
12.2
Statistic
FMM
Blog
Icon.GetIconWithQuickLook
Queries the Finder icon for the file or folder with the given path.
Component | Version | macOS | Windows | Linux | Server | iOS SDK | License |
QuickLook Files | 2.3 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No | Paid |
MBS( "Icon.GetIconWithQuickLook"; 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.This method tries first to get QuickLook preview for the file, before it tries the icon. QuickLook requires macOS 10.5. Size specifies the icon size from 16 to 512 pixel. The container value returned includes PNG data with alpha, JPEG preview, filename and size.
Version 4.3 adds support for Windows. We now query same thumbnail as explorer uses.
See also Icon.GetIcon.
Does not work on server due to missing quicklook services without an user account.
Examples
Queries preview on iPhoto app:
MBS( "Icon.GetIconWithQuickLook"; "/Applications/iPhoto.app"; 512 )
Add picture to field:
Set Field [ test::pic ; MBS("Icon.GetIconWithQuickLook"; "/Users/cs/Desktop/solar-system.png"; 512) ]
See also
Release notes
- Version 11.3
- Changed Icon.GetIcon, Icon.SetIcon and Icon.GetIconWithQuickLook functions to better handle memory management on macOS.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 11.3pr5
- MBS Filemaker Plugin, version 2.3pr3
- MBS Filemaker Plugin, version 2.3pr2
- Getting icons from Files
FileMaker Magazin
Created 18th August 2014, last changed 10th April 2022
Feedback: Report problem or ask question.
