AdobeBridgeCS5SDK

Class SnpInspectMetadata

Object
   |
   +--SnpInspectMetadata

class SnpInspectMetadata


Shows how to acquire metadata for a selected thumbnail using XMP external object.

Usage

  1. Open the snippet in the ExtendScript Toolkit (see Readme.txt), setting Bridge CS5 as the target application
  2. In Bridge, select a single thumbnail that has metadata, such as an Adobe PDF, Adobe Photoshop CS5 (PSD) or Adobe InDesign CS5 (INDD).
  3. Go back to the ExtendScript Toolkit and run the snippet.
  4. 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.
 
Constructor Summary
SnpInspectMetadata()
           
 
Method Summary
 boolean canRun()
           Determines whether snippet can be run given current context.
 boolean run()
           Functional part of this snippet.

Field Detail

requiredContext

String requiredContext

Constructor Detail

SnpInspectMetadata

SnpInspectMetadata()

Method Detail

canRun

boolean canRun()

run

boolean run()

AdobeBridgeCS5SDK

http://www.adobe.com/devnet/bridge
Documentation generated by JSDoc on Tue Apr 27 10:21:34 2010