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:
- open file
- close file, close all files
- read from file
- write
- create file, create folder, create link
- delete file, delte folder
- exist, exists
- seek
- copy file
- move file
- rename file, rename folder
- zip file, zip folder
- unzip file
- ask file, ask folder
- answer file, answer folder
note
This page is under construction: it has not been reviewed for completeness.