
CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 267
XMPFile object
This class corresponds to the Adobe XMP Toolkit's File Handler component, which provides convenient I/O
access to the main, or document level, XMP for a file.
The File Handler supports those file formats in which you can embed XMP metadata, as defined in the XMP
Specification. It allows you to add XMP where none currently exists, expand existing XMP without regard
to existing padding, and reconcile XMP with other metadata formats.
The XMP Toolkit also supplies the Packet Scanner as a fallback solution for unsupported file formats. It
provides more limited accesses to all file formats by performing a dump file scan. It can update a file, but
cannot extend the packet or reconcile other metadata formats.
The XMPScript API does not currently support retrieving thumbnails.
N
OTE: You can also use the Adobe Bridge Metadata object to access embedded metadata in files. It
supports thumbnails and previews, and additional file formats such as PDF and Camera Raw. For details,
see the Adobe Bridge JavaScript Guide and Adobe Bridge JavaScript Reference.
getDate()
XMPDateTimeObj.getDate()
Converts this date-time value to a JavaScript Date. The time zone is normalized (time zones are not
supported in the JavaScript format), and the accuracy is reduced to milliseconds.
Returns a JavaScript
Date object.
setLocalTimeZone()
XMPDateTimeObj.setLocalTimeZone()
Sets the time zone in this object to the current operation-system value, replacing any existing value.
Does not affect other fields.
Returns
undefined.
Comentários a estes Manuais