EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Especificações Página 257

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 304
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 256
257
10
Scripting Access to XMP Metadata
XMPScript, the XMP ExtendScript API, offers JavaScript access to the Adobe XMP Core and XMP Files
libraries. This chapter provides reference information for the JavaScript objects related to XMP, with their
properties and methods.
This chapter is not intended to provide complete details of the XMP metadata technology. For more
information about XMP metadata, see the XMP Specification at Adobe Developer Center,
http://www.adobe.com/devnet/
.
Adobe Bridge CS5 makes the XMP library available in its libraries folder. Scripts must load the library at run
time to use the API; it is not automatically loaded when Adobe Bridge launches. The XMPScript API is
separate from the Adobe Bridge DOM. You can use it independently, to get and set metadata in supported
formats; or you can use it with the Adobe Bridge API to modify the metadata that you access from files
using the Adobe Bridge DOM’s
Thumbnail object.
N
OTE: Adobe Bridge provides a means of embedding metadata values in a script (to describe the script file
itself) using XML delimited by special tags within a comment block. This is not related to metadata access
for files and thumbnails. For details, see the Adobe Bridge JavaScript Guide.
Accessing the XMP scripting API
To use the XMP objects, you must load the XMP library as an ExtendScript ExternalObject. To avoid
loading multiple instances of the library, use code like the following:
// load the library
if (ExternalObject.AdobeXMPScript == undefined) {
ExternalObject.AdobeXMPScript = new
ExternalObject(’lib:AdobeXMPScript’);
}
After the library has been loaded, these primary XMP classes are available in the global JavaScript
namespace:
Additional top-level objects include array-handling utilities, a date-time object, and constant definitions
that include namespace constants. The top-level objects provide access to additional support classes that
encapsulate individual metadata properties, file information, and XMP packet information, and a utility
that allows iteration through properties.
See
XMPScript object reference” on page 261 for details of the classes, their properties, and their
methods.
XMPMeta object
Provides the core services of the XMP Toolkit. Allows you to create and delete
metadata properties, and to retrieve and modify property values.
XMPFile object
Provides convenient I/O access to the main, or document level, XMP for a file. Allows
you to retrieve existing metadata from a file, update file metadata, and add new
metadata to a file.
Vista de página 256
1 2 ... 252 253 254 255 256 257 258 259 260 261 262 ... 303 304

Comentários a estes Manuais

Sem comentários