File functions
 

Specifying file names

how to specify file names 

baFileAge

returns the age of a file

baFileExists

checks whether a file exists

baIsBundle

checks if a file is a bundle

baFolderExists

checks whether a folder exists

baCreateFolder

creates a new folder

baDeleteFolder

deletes an empty folder

baRenameFile

renames a file or folder

baDeleteFile

deletes a file

baDeleteXFiles

deletes files with wildcard matching

baXDelete

deletes files with wildcard matching, including sub-directories

baFileDate

returns the date of a file

baFileDateEx

returns the date of a file/folder

baSetFileDate

sets the date of a file

baFileSize

returns the size of a file

baFileSizeEx

returns the size of a folder

baFileAttributes

returns the attributes of a file

baSetFileAttributes

sets the attributes of a file

baFilePermissions

returns the Unix file permissions

baSetFilePermissions

set the Unix file permissions

baFileType

returns the four character type code of a file

baFileCreator

returns the four character creator code of a file
baSetFileInfo sets the type or creator of a file

baRecycleFile

places a file in the recycle bin.

baCopyFile

copies a file

baCopyXFiles

copies multiple files with wildcard matching

baXCopy

copies multiple files with wildcard matching, including sub-directories

baCopyFileProgress

copies file while displaying progress bar

baCopyXFilesProgress

copies multiple files while displaying progress bar

baXCopyProgress

copies multiple files, including sub-folders, while displaying progress bar

baFileVersion

returns the version of a file

baFileList

returns a list of files in a folder

baFolderList

returns a list of folders in a folder

baGetFilename

displays a file selection dialog

baGetFilenameEx

displays a file selection dialog

baGetFolder

displays a folder selection dialog

baGetFiles

displays a file selection dialog

baGetDisk

displays a disk selection dialog

baFolderSize

returns the size of a folder

baMoveOnReboot

moves a file on system reboot

baFindFirstFile

searches for the first file matching a specification

baFindNextFile

searches for the next file matching a specification

baFindClose

finishes a search started with baFindFirstFile

baEncryptFile

encrypts/decrypts a file

baFindDrive

searches all drives for a specified file

baShell

executes a file

baOpenFile

opens a file using it's associated program

baOpenURL

opens a URL using the default browser

baPrintFile

prints a file using it's associated program

baShortFileName

returns the DOS version of a Win95 long file name

baLongFileName

returns the long version of a short file name

baTempFileName

returns a temporary file name guaranteed not to exist

baHfsName

returns the Hfs name of a file

baUnixName

returns the Unix name of a file

baReturnUnixNames

sets whether to return file names in Unix or Hfs format

baMakeShortcut

creates a shortcut

baMakeShortcutEx

creates a shortcut

baResolveShortcut

returns the file a shortcut points to

baBundleApp

returns the application file inside a bundle