Text file Into an AppleScript Variable


/ Published in: AppleScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. set theFile to (choose file with prompt "Select a file to read:" of type {"TXT"})
  2. open for access theFile
  3. set fileContents to (read theFile)
  4. close access theFile

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.