• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Download Folder Location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Download Folder Location (From: Brett Coffin <email@hidden>)

  • Prev by Date: Relaunch my Application
  • Next by Date: Re: execle err=22
  • Previous by thread: Re: Download Folder Location
  • Next by thread: Book Recommendation
  • Index(es):
    • Date
    • Thread