Topics
All
Mac OS X
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Guides
Examples
New in version:
7.4
7.5
8.0
8.1
8.2
8.3
8.4
8.5
9.0
9.1
Statistic
Icon.GetIcon
Queries the Finder icon for the file or folder with the given path.
Component | Version | macOS | Windows | Server | FileMaker Cloud | FileMaker iOS SDK |
QuickLook Files | 2.3 | Yes | Yes | Yes | No | No |
MBS( "Icon.GetIcon"; Path; Size ) More
Parameters
Parameter | Description | Example value |
---|---|---|
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
Example Databases
- Mac only/MetaDataQuery/Search Applications
- Mac only/Icon and QuickLook/Icons
- Files/File Listing With Icons
Blog Entries
- Spotlight search in FileMaker with MBS Plugin
- MBS Filemaker Plugin, version 4.3pr5
- MBS Filemaker Plugin, version 4.2pr12
- MBS Filemaker Plugin, version 2.3pr3
- MBS Filemaker Plugin, version 2.3pr2
- Getting icons from Files
Created 18th August 2014, last changed 29th October 2018
Icon.ClearIcon - Icon.GetIconWithQuickLook
Feedback: Report problem or ask question.
Links
MBS FileMaker tutorial videos