put into URL not "putting"

Sarah Reichelt sarahr at genesearch.com.au
Thu May 5 21:26:33 EDT 2005


> on setPref prefName,prefData
>   put prefData into preferencesData[prefName]
>   put the keys of preferencesData into theKeys
>   repeat with x=1 to the number of lines in theKeys
>     put line x of theKeys & "=" & preferencesData[(line x of theKeys)] 
> &cr after newData
>   end repeat
>   put newData into url ("file:Preferences.dat")
> end setPref
>
Hi Derek,

There doesn't look to be anything wrong with this script, but there are 
2 things you could check:
1. check what newData contains before writing it - maybe it really is 
empty for some reason and it isn't the put URL at fault.
2. check the defaultFolder - maybe your Preferences.dat file is being 
written in different places at different times.

HTH,
Sarah



More information about the use-livecode mailing list