Ronald Oussoren wrote: > You can do this through the bundle API (open the bundle for an > application, look up the name of the icon from the Info.plist and then > locate that icon. > > Something like: > > path = ... > bundle = NSBundle.bundleWithPath_(path) > info = bundle.infoDictionary() > iconName = info['CFBundleIconFile'] > iconPath = bundle.pathForResource_ofType_(iconName, 'icns') >
Thanks, I'll give this a try! I would probably have to add an extra step (getInfoForFile:application:type) to this to get the image for an arbitrary file type, but this looks promising. -- Kevin Walzer Code by Kevin http://www.codebykevin.com _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig