ExtendScript ToolKit

# SendObjectToPhotoshop Class Reference

List of all members.

## Public Member Functions
void | SendObjectToPhotoshop ()
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 SendObjectToPhotoshop::SendObjectToPhotoshop | ( |  | ) |

## Member Function Documentation

Boolean SendObjectToPhotoshop::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 contains a serialized JavaScript object, reconstructs and modifies it on the target side, then reserializes and sends it back as the result.

The sender reconstructs the serialized object it receives as the result of the message.

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

Boolean SendObjectToPhotoshop::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 SendObjectToPhotoshop::requiredContext

The context in which this snippet can run.

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

- SendObjectToPhotoshop.jsx

Copyright© 2008 Adobe Systems Incorporated. All rights reserved.

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