XFile provides unified object oriented interface to file operation (moving, removing, geting attributes and so on).Functions of file operations of AppleScript world is given by Scripting Additions, Finder, System Events, shell commnads, AppleScriptObjC. It is cumbersome to find a proper way, because implemeted locations of functions are distributed.XFile wraps these components and introduces a file object for unified object oriented interface.
Making a new instance with a reference to a file from the class object.
Make a XFile instance with a file reference
Make a new instance with a PathInfo instance.
Making a new XFile instance with changing a part of the exisiting instance.
Make a new instance with changing file name of the instance
Make a new instance with changing folder of the instance
Make a new instance with changing path extension of the instance
Obtain a reference to a file which XFile reference to.
Obtain a reference to a file as alias class
Obtain a reference to a file as File URL class
Obtain HFS path
Obtain POSIX path
Obtain POSIX path which does not end with "/".
Obtain uniform type identifier (UTI) of the item
Check whether the item is a folder or not.
Check whether the item is a package or not.
Check whether the item is an alias file or not.
Check whether the item is a symbolic link or not.
Check whether the operating system appears able to execute a specified file.
Check whether the item is visible or not.
Set creator code and type code to the item.
Obtain file information.
Obtain file information including its size.
Obtain file information again.
Obtain the name of the item referenced by the instance
Obtain the base name (a name which does not include path extension) of the item referenced by the instance.
Obtain path extension of the item referenced by the instance.
Obtain the volume name of the item referenced by the instance.
Obtain an item which is in the bundle resource folder.
Obtain a reference to Info.plist of the bundle.
Check whether the item referenced by the instance exists or not.
Check whether the item referenced by the instance exists or not.
Synonym of item_exists. Check whether the item referenced by the instance exists or not.
Rename an item which referenced by the XFile instance.
Copy the item to specified location
Copy the item to specified location with replacing the destination.
Copy the item to specified location with options.
Move the item referenced by the instance to specified location.
Move the item referenced by the instance to specified location with replacing the destination.
Resolving original item of a alias file.
Put into trash.
Remove the item referd from the target XFile instance.
Make a sub folder.
Make folders which indicating the path of the XFile instance.
Read file contents as UTF-8 encoded text.
Write data into the file as UTF-8 encoded text.
Obtain a folder containing the item referenced by the XFile instance.
Obtain an item in the folder with specifying a sub path from the target.
Obtain a XFile instance reference unique name item in the folder.
Call do handler of given script object with each item in the folder as an argument.
Run passed shell command taking the target as an argument.
Run test command taking the target as an argument.