Thanks for all the feedback on this. Here is the code I came up with to set the path for the preference file and create the folder if it didn't exist. Note I didn't include a company folder in the path like Igor's example because lcTaskList is not an executable but a plugin stack. You may want to include that in your program.
if the platform is "MacOS" then put specialFolderPath("Home") & "/Library/Application Support/lcTaskList/" into vLcTaskListPath if the platform is "WIn32" then put specialFolderPath("0x001a") & "/lcTaskList/" into vLcTaskListPath if the platform is "Linux" then put specialFolderPath("Home") & "/.lcTaskList/" into vLcTaskListPath if there is not a folder vLcTaskListPath then create folder vLcTaskListPath Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) On Jun 16, 2012, at 4:09 PM, Igor de Oliveira Couto wrote: > Hello, Bill, > > Not very long ago, I had the same question, and several users contributed > their knowledge and experience in the different platforms, helping me compile > an answer: > > On 17/06/2012, at 6:28 AM, Bill Vlahos wrote: > >> Where do folks put application specific preferences on Windows and LInux? > > The answer I compiled from all replies and pointers received was: > > 1) MacOS X > Prefs Location: specialFolderPath("Home") & "/Library/Application > Support/MyCompany/MyAppBundleID/" - - Apple requires you to use the > application's bundle id for the *folder name* > > 2) Windows > Prefs Location: specialFolderPath("0x001a") & "/MyApp/" > > 3) Linux > Prefs Location: there does not seem to be a 'standard', but several programs > seem to take the approach of creating a hidden folder in the user's home > directory - specialFolderPath("Home") & "/.myapp/" > > 4) iOS > Prefs Location: specialFolderPath("library") & "/MyAppBundleID/" - Apple > requires you to use the application's bundle id for the *folder name* > > 5) Android > Prefs Location: specialFolderPath("documents") > > The information above will help you find or create the appropriate directory > in which to save your preferences file. The preferences file itself can be > called pretty much anything you want, as there do not seem to be any strict > guidelines in any current platform. > > I hope this information helps! > > -- > Igor Couto > Sydney, Australia _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode