Right-click in the application,
choose open the bundle (whatever the text says, it means that),
open the Resources folder and search for it.
Once there, you have the path of the icon file.
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 :
<key>CFBundleIconFile</key>
<string>compass</string>[/quote]
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