site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Oct 12, 2008, at 7:59 AM, Andre-John Mas wrote: Are there other locations and are there any suggested usage policies? Philip Aker echo astwta@lvpc.dslh@nl | tr a-z@. p-za-o.@ Democracy: Two wolves and a sheep voting on lunch. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I am try to find out what the right place is to save a temporary file on the Mac is. I have looked at the following places: /tmp ~/Library/Caches/<app name> To elaborate: what I am looking at is a file to be downloaded by a web browser, in order to directly be opened up by another application. In order for the other application to have access to it I will have to save it somewhere, though I am not sure where I should be saving it and what sort of life-span this file should have on the user's hard-disk. For the circumstance, I think it would be: defaults read com.apple.Safari DownloadsPath (use realpath on it). Several levels up there would be FSFindFolder() in Folders.h (kDownloadsFolderType, kCachedDataFolderType, etc.). Also there's $TMPDIR but you'd probably want to create your own subfolder in it. I'm not sure if it would be in keeping with standard usage for that folder though. This email sent to site_archiver@lists.apple.com