Can somebody please explain me the technical structure of an AppleScript LIST saved in a text file? There must be a length (entries counter) somewhere inside.
I had a little crash and the saved file looks like corrupt now. It always shows 1800 entries instead of 2600 before. And there are for sure more than 1800 entries. I also think it cannot be like an EOF. If I make the file shorter than 1800 I get an EOF error. If I let it longer I get just 1800 entries.
How can I fix this problem? Where can I say inside the file: hey this list has 2600 entries.
# Read List
set fileName to choose file name with prompt "Please choose log file:"
set myPeople to read fileName as list
set listCount to length of myPeople
log "Count Start: "
log listCount
...
# Save List
set f to open for access fileName with write permission
write myPeople to f
close access f