Specifications
matches if its filename extension and/or its Mac file type
(after conversion) match the specified filename extension.
This function does not examine the file contents.
Returns true if the file exists, false otherwise.
isFile( ) : Boolean
Returns the size in bytes of the file, or zero if the file doesn’t
exist.
getByteCount( ) : Number
Returns the creation time of the file, or null if the file doesn’t
exist.
getCreated( ) : Date
Returns the last modification time of the file, or null if the
file doesn’t exist.
getModified( ) : Date
Accessing embedded metadata
Returns a read-only embedded metadata dataset object with the XMP
data model for the metadata embedded in the file, or null if the file
getEmbeddedDataset(
) : Dataset
doesn’t exist. If the file exists but it has no supported embedded
metadata, the function returns a valid but empty dataset.
The backing file path for the dataset points to the file. Metadata may be
embedded in the file as an XMP packet and/or as binary EXIF or IPTC tags.
Metadata fields from multiple sources are synchronized into a unified
XMP data model. See supported file formats for more information.
This function behaves similarly to the Job.getEmbeddedDataset() function;
it supports the same file and metadata formats and performs the same
synchronizations. The advantage is that it can be used with any file (for
example, to iterate over all files inside a job folder). It does not however
allow metadata updates (it always returns a read-only dataset) and it
does not support folders (i.e. it doesn’t look for an appropriate backing
file inside a folder).
Recognizing file format
The functions in this section recognize file format by looking at the file contents. The current
implementation supports the following formats:
DescriptionFilename extension
Adobe Illustrator (internal format is PDF)AI
Video clipAVI
Encapsulated PostScriptEPS
Adobe InDesignINDD
JPEG imageJPEG
487
Enfocus Switch 10