Class SnpInspectMetadata
Object
|
+--SnpInspectMetadata
- class
SnpInspectMetadata
Shows how to acquire metadata for a selected thumbnail using XMP external object.
Usage
- Open the snippet in the ExtendScript Toolkit (see Readme.txt), setting Bridge CS5 as the target application
- In Bridge, select a single thumbnail that has metadata, such as an Adobe PDF, Adobe Photoshop CS5 (PSD) or Adobe InDesign CS5 (INDD).
- Go back to the ExtendScript Toolkit and run the snippet.
- Inspect the JavaScript Console of the Toolkit; you should see information about the XMP-based metadata of the thumbnail selected.
Description
Shows how to acquire XMP metadata for a selected thumbnail by creating an XMPMeta object
and retrieving XMP properties.
The File object that is represented by the selected Thumbnail in Bridge is used to create a read only
XMPFile object, which in turn gives the XMPMeta object. Several properties are inspected from different
namespaces and displayed via the JavaScript console.
One of the properties inspected is an alternative array (language alternative) which may have several
qualifiers. This sample demonstrates how to access the qualifier directly as well as how to select the
localized text.
See the XMP section in the JavaScript Tools Guide for more details.
See:
Defined in SnpInspectMetadata.jsx
Field Summary |
String |
requiredContext
The context in which this snippet can run. |
Method Summary |
boolean
|
canRun()
Determines whether snippet can be run given current context.
|
boolean
|
run()
Functional part of this snippet.
|
requiredContext
String requiredContext
The context in which this snippet can run.
SnpInspectMetadata
SnpInspectMetadata()
canRun
boolean canRun()
Determines whether snippet can be run given current context. The snippet
fails if these preconditions are not met:
- Must be running in Bridge
- A selection must be made in the Content pane of Bridge
Returns:
True is this snippet can run, false otherwise
run
boolean run()
Functional part of this snippet. Get the selected Thumbnail and creates an XMPFile object which
is used to get access to the XMP data.
Returns:
True if the snippet ran as expected, false otherwise
http://www.adobe.com/devnet/bridge
Documentation generated by
JSDoc on Tue Apr 27 10:21:34 2010