I cannot manage to change the icon for my .pl files in OS X 10.7.5
I have perl scripts which have the extension .pl. I edit them with BBEdit and run them in the terminal.app. The scripts contains a shebang line and I have assigned all .pl extension to open with the terminal. So clicking on a .pl file runs the perl script.
This is what I want:
I would like all .pl files to have the same icon, so I can recognize them immediately as such. The assignment of the Icon should automatically happen when I generate a file, as I am to lazy to change the Icons manually for each file. (I know how to do this)
This is what I did, but does not work:
I got a .jpg file which I converted to png and renamed to PerlIcon.icns
Inside the terminal.app package I saved latter file into the folder Contents/Resources/
In the Info.plist file I also included following code inside <key>CFBundleDocumentTyper<key><array> ... </array>:
This is not working. I also changed "PerlIcon.icns" to "PerlIcon" and/or "Viewer" to "Editor".
As this is also not working. I tried the same with the BBEdit application package, but still I do not get the icon assignement I want.
What am I doing wrong?
Many thanks for any help