CFBundleExecutable in Info.plist is ignored
I'm trying to customize the behavior of certain application bundles by editing the Info.plist preferences. The idea is to change the CFBundleExecutable key to point to a different file. Unfortunately, my changes seem to be ignored.
As a test, I placed an executable shell script named 'test' in /Applications/TextEdit.app/Contents/MacOS/ which launches a different application (so that i will be obvious when it works). Then I opened /Applications/TextEdit.app/Contents/Info.plist in Property List Editor and change CFBundleExecutable from 'TextEdit' to 'test', and saved it. Now when i double click on TextEdit.app, it should execute my shell script, but instead TextEditor is still launched.
It seems the bundles are hard-wired to execute a file with the same name as the bundle. Is there any way to change this?
If there is a better place to post this question, please let me know.
thanks in advance,
chad
Mac OS X (10.4.11)