It’s not as simple as getting the code to dig into various app bundles. Apple tend to name their icns files with the same name as the app, minus any spaces. But other developers may not. For example, I have FileMaker Pro on my hard drive - it’s icns file is named FM12App.icns.
But as I said, MacOSLib has the required functions to do this properly.
[quote=154904:@Michel Bujardet]Just look into /Content/info.plist :
Not sure it’s a great idea to be digging around inside the bundles of other apps. Macoslib seems to do it the proper way. And I’m sure Christian’s does too, to save him a post