Re: Download Folder Location
Re: Download Folder Location
- Subject: Re: Download Folder Location
- From: Dustin Voss <email@hidden>
- Date: Sat, 20 Sep 2003 10:59:56 -0700
On Friday, September 19, 2003, at 08:44 PM, Brett Coffin wrote:
Does anyone know how to retrieve the location of the download folder
that the user set in system preferences.
I attempted to use nsunarchiver on the entry in the
com.apple.internetconfig.plist file but it didn't really like the data
being fed into it.
It may be safe to read from com.apple.internetconfig.plist directly,
but I'd use the Internet Config API to access those values. Read the
documentation at
<
http://www.quinn.echidna.id.au/Quinn/Config/Prog_Docs.html>. The
download folder data is an ICFileSpec:
struct ICFileSpec {
Str31 vol_name;
long vol_creation_date;
FSSpec fss;
AliasRecord alias;
};
The documentation suggests using the alias, and ignoring the other
fields.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.