[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.

Trent

-- 
Trent Mick
[EMAIL PROTECTED]
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to