Topics   All   Mac OS X (Only)   Windows (Only)   Crossplatform   Server   Client   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   5.0   5.1   5.2   5.3   5.4  


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

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


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


Container value.


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.
See also Icon.GetIconWithQuickLook.


Queries icon of iPhoto app:

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

See also

Icon.ClearIcon   -   Icon.GetIconWithQuickLook

Feedback: Report problem or ask question.

MBS REALbasic Plugins - Pfarrgemeinde Messdiener Nickenich