On Jun 14, 2005, at 12:25 PM, Trent Mick wrote:

> [Schollnick, Benjamin wrote]
>
>> Folks,
>>
>>     I'm considering porting a windows python package over to the
>> Macintosh....
>>
>>     But one problem comes up....
>>
>>     Is there any way to gather a list of applications that have been
>> installed on
>>     the Macintosh....
>>
>>     With the windows registry, we just look at the uninstall tree....
>>     It's not perfect, but that get's 95+% of the packages....
>>
>>   I can't think of any way to do this on the mac... Except....
>>
>>     1) Os.path.Walk & check for .APP bundles....
>>
>>   Anyone have a better suggestion?  This would have to address all  
>> the
>> connected
>>   hard drives....
>>
>
> Anything installed using Apple .pkg/.mpkg bundles will leave a receipt
> in /Library/Receipts. (Maybe ~/Library/Receipts too? I don't know.)
>
> However, most GUI apps won't install this way though. They will just
> have been dragged from a disk image or something to whereever the user
> wanted to install it. Typically this is somewhere under /Applications,
> but could also be anywhere else.

The first question is of course, why do you want to do this?  It's  
almost always the wrong thing to do in the Mac universe.

-bob

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to