on mouseUp
ask "export data to what file"
if it is not empty then
put it into filename
open file fileName
repeat with i = 1 to the number of lines of field 1
write line i of field 1 & numtochar(12) to file filename
end repeat
close file fileName
end if
end mouseUp
The key line is "write .... numToChar(12)...", because that's what does the
page break. Ascii╩12 is a page break.
This article is adapted from the Claris Tech Info database.