ExtendScript ToolKit

# SendDOMObjectToPhotoshop Class Reference

List of all members.

## Public Member Functions
void | SendDOMObjectToPhotoshop ()
Boolean | run ()
| Functional part of this snippet.
Boolean | canRun ()
| Determines whether snippet can run given current context.
## Public Attributes
String | requiredContext
| The context in which this snippet can run.

## Constructor & Destructor Documentation

void SendDOMObjectToPhotoshop::SendDOMObjectToPhotoshop | ( |  | ) |

## Member Function Documentation

Boolean SendDOMObjectToPhotoshop::run | ( |  | ) |

Functional part of this snippet.

Constructs a BridgeTalk message, which contains both the script to run in Photoshop, and the onResult callback for processing the response, then sends the message to Photoshop.

The script creates a DOM object on the target side, and serializes it in order to return it as the result of evaluation.

Returns:
  True if the snippet ran as expected, false if Photoshop is not running or if an error occurred sending the message.

Boolean SendDOMObjectToPhotoshop::canRun | ( |  | ) |

Determines whether snippet can run given current context.

The snippet fails if these preconditions are not met:

- Photoshop must be running

Returns:
  True if this snippet can run, false otherwise

## Member Data Documentation

String SendDOMObjectToPhotoshop::requiredContext

The context in which this snippet can run.

The documentation for this class was generated from the following file:

- SnpSendDOMObject.jsx

Copyright© 2008 Adobe Systems Incorporated. All rights reserved.

Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks