-
addEventListener( |
eventType, handler [, captures=false]) |
→ EventListener |
-
Adds an event listener.
eventType
|
string
The event type.
|
handler
|
The event handler. Can accept: File or JavaScript Function.
|
captures
|
bool
This parameter is obsolete. (Optional)
|
-
append( |
from [, affectAll=false]) |
-
Uses metadata from the specified external file to define any undefined metadata properties in the document.
from
|
File
The path to the external file that contains the metadata.
|
affectAll
|
bool
If true, also replaces existing metadata with data from the external file. If false, does not replace existing metadata. Note: Defaults to false. (Optional)
|
-
countContainer( |
namespace, path) |
→ number |
-
Counts the number of items in the container.
namespace
|
string
The namespace of the container.
|
path
|
string
The path to the container.
|
-
createContainerItem( |
namespace, path [, index=0] [, container=ContainerType.BAG]) |
-
Creates an empty container.
namespace
|
string
The namespace of the container.
|
path
|
string
The path to the container.
|
index
|
number
The index of the item within the container. Specified values must be 1 or greater. To append the item to the end of the index and allow the next available value to be assigned, use 0. (Optional)
|
container
|
ContainerType
The container type. Note: Required when the new item is the first item added to the container. (Optional)
|
-
-
Resolves the object specifier, creating an array of object references.
-
getProperty( |
namespace, path) |
→ string |
-
Gets the XMP property value associated with the specified path.
namespace
|
string
The namespace of the property.
|
path
|
string
The specified path.
|
-
removeEventListener( |
eventType, handler [, captures=false]) |
→ bool |
-
Removes the event listener.
eventType
|
string
The registered event type.
|
handler
|
The registered event handler. Can accept: File or JavaScript Function.
|
captures
|
bool
This parameter is obsolete. (Optional)
|
-
replace( |
using [, affectAll=false]) |
-
Replaces the current metadata in the document with metadata from the specified file.
using
|
File
The full path to the file that contains the replacement metadata.
|
affectAll
|
bool
If true, treats all properties as external. Note: Defaults to false. (Optional)
|
-
-
Saves the metadata in the document to an external file.
to
|
File
The path to the external file.
|
-
setProperty( |
namespace, path, value) |
-
Sets the XMP property associated with the specified path.
namespace
|
string
The namespace of the property.
|
path
|
string
The specified path(s).
|
value
|
string
The value to assign to the property. Note: To remove the property, pass an empty string.
|
-
-
Generates a string which, if executed, will return the MetadataPreference.
-
-
Retrieves the object specifier.