FILE OBJECT TYPE NAME: file SHORTCUT: dir DESCRIPTION Reference to a file or folder (directory) on disk. The string value of the file object is the path and name of the file. CHILDREN None. MESSAGES read - Read file and put data in the specified object. If the is not specified, the data will be in . write - Write the data in the into the file. show - Show the contents of the file. page - Show the contents of the file, paginated open - Open the file with the default application for the type. check_exists - Check to see if the file exists. will be true or false. check_is_file - Check to see if the file specified is a regular file. will be true or false. check_is_dir - Check to see if the file specified is a diretory. will be true or false. EXAMPLE exists [can] : f [file] : /Users/me/tmp on_load [script] : show "Checking to see if file exists: " + exists.f tell exists.f to check_exists show it tell exists.f to check_is_dir show "is a directory? " + it tell exists.f to check_is_file show "is a file? " + it SEE ALSO