https://faqintosh.com/!index71/applescript-text-files
AppleScript: read and write text files