file
Keyword, Object Type (file x)
A file can be treated as a container by simply referring to it as "file filePath" in any place where a container can be used in a script.
Examples:
put file “~/Documents/blog.txt” into blog -- read file
put newText into file “/tmp/holder.txt” -- write file
put logEntry & return after file logFile -- append to file
Further Reading
Resources in our other reference manuals.
Related Terms
Related terms in the SenseTalk Dictionary.