Topics   All functions   Mac OS X   Windows   Crossplatform   Server   Components   Guides   Statistic  
New in version: 3.0   3.1   3.2   3.3   3.4   3.5   4.0   4.1   4.2   4.3   4.4   4.5  

Icon.GetIconWithQuickLook

Component: QuickLook
Version: 2.3
Mac OS X: Yes
Windows: No
Server: Yes

MBS( "Icon.GetIconWithQuickLook"; Path; Size )

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.
This method tries first to get QuickLook preview for the file, before it tries the icon. QuickLook requires Mac OS X 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.

Examples

Queries preview on iPhoto app:

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

Feedback: Report problem or ask question.




Links
MBS Real Studio Plugins - Pfarrgemeinde St. Arnulf Nickenich