[Pythonmac-SIG] associating file types and applications...

Daniel Greenblatt dan at cgl.ucsf.edu
Wed Mar 31 13:48:54 EST 2004


Thanks for the quick response Bob, I'm not sure this solves my problem
though (looking at my original email, I see it can be taken several
ways)...

My understanding that although the Info.plist file informs the OS of what
type of files a particular application bundle knows how to handle, it
doesnt necessarily tell the OS that it should use that particular
application when a file of that type is encountered....
(please let me know if I'm way off course here....)

i.e. both TextEdit.app and MSWord.app know how to deal with .txt files,
but it must say somewhere else which one should be used when the user
double clicks on /Users/Dan/Desktop/foo.txt


Thanks
Dan



----------------------------
Daniel Greenblatt
UCSF Computer Graphics Lab
dan at cgl.ucsf.edu

On Wed, 31 Mar 2004, Bob Ippolito wrote:

> Date: Wed, 31 Mar 2004 13:37:17 -0500
> From: Bob Ippolito <bob at redivi.com>
> To: Daniel Greenblatt <dan at cgl.ucsf.edu>
> Cc: pythonmac-sig at python.org
> Subject: Re: [Pythonmac-SIG] associating file types and applications...
>
>
> On Mar 31, 2004, at 12:23 PM, Daniel Greenblatt wrote:
>
> > An application we're distributing defines several of its own file
> > types...
> > Is it possible to use Python  to programmatically establish the
> > association btn. that file type and my application,
> > either on a user-wide (ideally) or system-wide (less ideally)
> > basis? I.e. so when they click on their file on their desktop, or
> > click on a link to that file from their browser, it knows where
> > to send the file....
> >
> > I'm sure I have to write into some plist somewhere, but not quite
> > sure which one, and the best way to do it.....
>
> It's in the Info.plist file..
>
> See:
> http://developer.apple.com/documentation/MacOSX/Conceptual/
> BPRuntimeConfig/Concepts/PListKeys.html
>
> particularly CFBundleDocumentTypes
>
> -bob
>
>



More information about the Pythonmac-SIG mailing list