[Pythonmac-SIG] Wanted: working example of CFBundleTypeRole Shell

Jack Jansen Jack.Jansen@oratrix.com
Tue, 5 Mar 2002 23:09:20 +0100


Folks,
does anyone know of an OSX program that actually uses the 
CFBundleTypeRole of "Shell" in its .plist and actually has it 
working?

According to the docs, if you set this role for a certain 
document type in your plist file it should fire up a new 
instance of your program for each double-clicked document: 
exactly what we want for Python.app.

The bad news is that it doesn't work. The other bad news is that 
a google search for these two words returns two sorts of 
matches: Apple documentation and copies of my Python.app plist 
file. So, I'm not tempted to believe that (a) this doesn't work 
and (b) I'm the only one who ever tried it:-)

There is apparently an alternative way to get this behaviour: 
the Java Jar Runner does it (even though it specifies a role of 
Viewer for .jar files), every .jar you double-click gets its own 
separate icon in the dock, etc. Information (or pointers to it) 
how Jar Runner could be doing this would also be welcome.
--
- Jack Jansen        <Jack.Jansen@oratrix.com>        
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- 
Emma Goldman -