Path: utzoo!attcan!uunet!microsoft!t-alexc From: t-alexc@microsoft.UUCP (Alex CHAFFEE) Newsgroups: comp.sys.mac.programmer Subject: Re: Need sample code for folder/file lookup. Message-ID: <55606@microsoft.UUCP> Date: 3 Jul 90 06:26:30 GMT References: <1990Jun30.155142.885@kth.se> Reply-To: t-alexc@microsoft.UUCP (Alex CHAFFEE) Distribution: comp Organization: Microsoft Corp., Redmond WA Lines: 24 In article <1990Jun30.155142.885@kth.se> h+@nada.kth.se writes: >Be sure to create your prefs file in the folder "Preferences" >in the system folder. Someone said that you just had to add >"Preferences:" before the name to have to folder created >automagically if it didn't exist. Uh, that was me, and I was wrong. I hit "cancel" within the hour, but apparently the misinformation got out... To atone, I posted a function I wrote called CreatePath which does what I said PBHCreate does (but doesn't). If you like, I can repost. >If you want to be really nice, you could have a STR resource >named "Preferences folder name" containing the string >"Preferences:", and prepend the contents of this string, so >that international users can have what they want... Actually, a STR with ":Preferences:My Prefs" works fine as input to CreatePath. And if the Preferences folder already exists, it works fine with other programs too. So if you want to reduce your system folder clutter, find others' preference file name resources and add ":Preferences:" to the beginning. - Alex Chaffee microsoft!t-alexc