I would like to know two, preferably with a code sample so that I can incorporate in into Circle Dock. However, the extracted icon will be a maximum of 126x126 in size which might not look good blown up. I can extract icons for all regular files and folders but I can't get the thumbnail preview icon of a folder.