[Project_owners] Mac OS paths

Neil neil at parkwaycc.co.uk
Sat Feb 21 01:12:48 EST 2004


Kai Henning wrote:

> How do I get a proper path out of the Mac OS prefrences (I always get 
> this "AAA..." string when I try to get the 
> pref.getCharPref(mail.root.none) on a Mac)? We need a path like we get 
> from Windows or Linux on a Mac OS as well.

prefBranch.getComplexValue("mail.root.none", 
Components.interfaces.nsILocalFile).QueryInterface(Components.interfaces.nsILocalFileMac)

Note that the nsILocalFileMac objects are pretty opaque to JS, because 
of the unique Mac file system...



More information about the Project_owners mailing list