File Verbs

  • file.bytesInFolder - Get the number of bytes in a folder.

  • file.bytesOnVolume - Get the number of bytes on a volume.

  • file.bytesOnVolumeDouble - Get the number of bytes on a volume. (Up to 4 Terabytes.)

  • file.close - Close a file.

  • file.compare - Compare two files.

  • file.copy - Copy a file.

  • file.copyDataFork - Copy the data fork of a file.

  • file.copyResourceFork - Copy a Macintosh resource fork.

  • file.copyToSystemFolder - Copy a file to the Macintosh System Folder.

  • file.countLines - Count the number of lines in a file.

  • file.countVolumes - Count the number of volumes.

  • file.created - Determine the creation date of a file.

  • file.creator - Get a file's creator.

  • file.delete - Delete a file.

  • file.deleteFolder - Delete a folder.

  • file.eject - Eject a disk.

  • file.emptyFolder - Delete all the contents of a folder.

  • file.endOfFile - Determine if the current position is at the end of the file.

  • file.exists - Determine if a file or folder exists.

  • file.fileFromPath - Get the file name from the end of a path.

  • file.filesInFolder - Get the number of files in a folder.

  • file.filesOnVolume - Get the number of files on a volume.

  • file.fileToURL - Convert a file path to a file URL.

  • file.filteredCopy - Selectively copy files.

  • file.findApplication - Determine the location of an application.

  • file.findInFile - Search a file for specified text.

  • file.findInFolder - Search files in a folder containing specified text.

  • file.folderFromPath - Get the path to the folder from a path.

  • file.foldersInFolder - Get the number of folders in a folder.

  • file.foldersOnVolume - Get the number of folders on a volume.

  • file.followAlias - Get the path pointed to by the alias.

  • file.freeSpaceOnVolume - Determine the amount of free space on a volume.

  • file.freeSpaceOnVolumeDouble - Determine the amount of free space on a volume. (Up to 4 Terabytes.)

  • file.getComment - Get the Macintosh comment for a file.

  • file.getDiskDialog - Get input from the user via a Get Disk dialog.

  • file.getEndOfFile - Get the position at the end of the file.

  • file.getFileDialog - Get input from the user via a Get File dialog.

  • file.getFolderDialog - Get input from the user via a Get Folder dialog.

  • file.getFullVersion - Get the full version of a file.

  • file.getIconPos - Get the icon position for a file.

  • file.getLabel - Get the Macintosh label of a file.

  • file.getMp3Info - Determine information about an MP3 file.

  • file.getPath - Get Frontier's current default path.

  • file.getPathChar - Get the path delimiter character, : on Macintosh and \ on Windows.

  • file.getPosition - Get the current read position for an open file.

  • file.getPrefsSubfolder - Get the path to the UserLand subfolder in the Prefs folder.

  • file.getSpecialFolderPath - Get a path to a special folder, as defined by the current operating system.

  • file.getSystemDisk - Get the path to the volume containing the system folder.

  • file.getSystemFolderPath - Get the path to the system folder.

  • file.getVersion - Get the version of a file.

  • file.hasBundle - Determine if a file has its bundle bit set.

  • file.isAlias - Determine if a path points to an alias.

  • file.isBusy - Determine if a file is busy.

  • file.isEjectable - Determine if the object at path is an ejectable disk.

  • file.isFolder - Determine if a path points to a folder.

  • file.isLocked - Determine if a file is locked.

  • file.isVisible - Determine if a file is visible.

  • file.isVolume - Determine if a path points to a volume.

  • file.lock - Lock a file.

  • file.modified - Get the modification date of a file.

  • file.mountServerVolume - Mount a file server on the network.

  • file.move - Move a file into a different folder.

  • file.new - Create a new file.

  • file.newAlias - Create a new Macintosh alias.

  • file.newer - Compare two files to see which is newer.

  • file.newFolder - Create a folder.

  • file.open - Open a file for reading or writing.

  • file.openFolder - Open the specified folder on the desktop.

  • file.putFileDialog - Get user input by displaying the Put File dialog.

  • file.read - Read data from a file.

  • file.readLine - Read a line from a file.

  • file.readWholeFile - Read an entire file.

  • file.reconcileFolder - Reconcile the contents of two folders.

  • file.rename - Rename a file, folder, or volume.

  • file.resolveAlias - Resolve a Macintosh alias.

  • file.reveal - Open a folder containing the file.

  • file.setBundle - Set a Macintosh file's bundle bit.

  • file.setComment - Set the Macintosh comment for a file.

  • file.setCreated - Set the creation date of a file.

  • file.setCreator - Set the creator of a file.

  • file.setFullVersion - Set the full version of an application.

  • file.setIconPos - Position an icon.

  • file.setLabel - Set the Macintosh label of a file.

  • file.setModified - Set the modification date of a file.

  • file.setPath - Set Frontier's default path to a folder.

  • file.setPosition - Set the current position in a file.

  • file.setType - Set the type of a file.

  • file.setVersion - Set the version number of an application.

  • file.setVisible - Set the visibility of a file.

  • file.size - Get the size of a file.

  • file.sureFilePath - Create all the folders on the path to the file.

  • file.sureFolder - Create all the folders on the path to the folder.

  • file.touchPath - Set the modification date of every file and folder in the path to the current time.

  • file.type - Get the type of a file.

  • file.uniqueName - Create a unique name for a file in a folder.

  • file.unlock - Unlock a file.

  • file.unmountVolume - Unmount a volume.

  • file.urlToFile - Convert a file URL to a file path.

  • file.visitFolder - Loop through the contents of a folder.

  • file.volumeBlockSize - Get the block size for a volume.

  • file.volumeFromPath - Given a path, get the name of the volume.

  • file.volumeSize - Get the size of a volume.

  • file.volumeSizeDouble - Get the size of a volume. (Up to 4 Terabytes.)

  • file.write - Write to a file.

  • file.writeLine - Write a line to a file.

  • file.writeTextFile - Writes a text file to disk with appropriate line endings and character set.

  • file.writeWholeFile - Write a file to disk.

  • file.synchFolderWithTable

  • file.synchTableWithFolder