Oh dear I am a bit silly. I forgot that all the data in the fields are on 1 line so the script kept overwriting

I would still like to know how to add the "TXT" extension automatically instead of having to write in the extension each time if someone could help me with that it would be much appreciated?
Thanks for any help.
Bidge
Code ammended
Code: Select all
on mouseUp
ask file "Save to?" with type "text files|TXT"
put it into tFile
if tFile is empty then
exit mouseUp
else
put line 1 of field "Field1" into line 1 of sRec
put line 1 of field "Field2" into line 2 of sRec
put line 1 of field "Field3" into line 3 of sRec
put line 1 of field "Field4" into line 4 of sRec
put line 1 of field "IWidth" into line 5 of sRec
put line 1 of field "IHeight" into line 6 of sRec
put sRec into URL ("file:" & tFile)
end if
end mouseUp