« MBS Filemaker Plugin,… | Home | MBS Real Studio Plugi… »

Getting icons from Files


With our Filemaker 2.3pr2 plugins we added a new function: Icon.GetIcon. This function allows you in Filemaker to get any file or folder icon from Mac OS X. You simply pass in the path and the size you want to have. In return you get a container value including the icon with alpha channel as PNG, a preview in JPEG with white background, filename and size.

And we added another function Icon.GetIconWithQuickLook to get the icon from QuickLook on Mac OS X 10.5 and newer. If QuickLook is not available or can't deliver a preview for the given file, we fall back to the GetIcon function. With help of QuickLook, you can see inside supported file formats like font, picture and document files.

On the right we put together a screenshot from the sample database. On the left you see the normal icons and on the right the QuickLook icons. You see the outline of the font file as well as a the green moos on right instead of the generic icons on the left.

If you want to do the same in Real Studio, please check out folderitem.QuickLookMBS and folderitem.IconMBS.
28 03 11 - 12:04
No comments

  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.