Hi Charles, This doesn't solve the problem on Windows, but try specialfolderpath("preferences") instead of specialfolderpath(26) In Mac OS X.
-- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission! On 13 nov 2011, at 19:57, Charles Szasz wrote: > Klaus, > > I left out this bit code: (put arrayDecode(tPrefs)into tPrefs) So, my code > looks like this: > > IF the platform is "MacOS" then > if there is a file (specialFolderPath(26) & "/" & "mileage_prefs") then > put url ("binfile:" & specialFolderPath("preferences") & "/" & > "mileage_prefs") into tPref > > put arrayDecode(tPrefs)into tPrefs > > put tPrefs["name"] into field "name" of card id 1002 of > stack "prefs" > put tPrefs["name"] into field "name" of card "one" of stack "mileage > report" > end if > end if > > IF the platform is "win32" then > if there is a file (specialFolderPath(26) & "/" & "mileage_prefs") then > put url ("binfile:" & specialFolderPath(26) & "/" & "mileage_prefs") > into tPrefs > > put arrayDecode(tPrefs) into tPrefs > -- now fill in all my data... > put tPrefs["name"] into field "name" of card id 1002 of stack "prefs" > end if > > end if > > > > Charles Szasz > csz...@mac.com > > > > > _______________________________________________ > 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 _______________________________________________ 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