Insert the following code immediately after the 'put' line. It might yield a clue:
get the result if it <> empty then answer it end if
HTH - Phil Davis
Derek Bump wrote:
Would someone be so kind and please analyze the following script to tell me why it will only write the data to the Preferences file just once, and every time afterward it will not write anything?
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
Derek Bump Dreamscape Software
_______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution