To get the icon is a 2 stage process. Do a shell call, designate a temporary folder to put the extracted icons. Step 2 import them.
It puts all extracted icons into a designated folder. On Sun, Jan 9, 2011 at 9:22 AM, Colin Holgate <co...@verizon.net> wrote: > I think I see the problem now. There are lots of ways to get the icon > manually, or with utilities, but suppose you're making a Dock utility for > the user, and want them to pick any application to assign to a button, you > would want LC to get the icon on the fly. > > Photo Booth's icons are stored in the file PhotoBooth.icns. Mail's is > stored in app.icns. Photoshop has its ones in PS_AppIcons.icns. So it may > end up being tricky to know what the icon file is called. You could look at > all of the files in the resources folder, and see which ones are icns. If > there's only one then that would be the right file. > > I'm not sure though how you would then extract the 32x32 icon from the set > of images in the icns file. > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode