AdobeBridgeCS5SDK

Class SnpSendMessage

Object
   |
   +--SnpSendMessage

class SnpSendMessage


Demonstrates basic cross-application communication using BridgeTalk messages, between Bridge CS5 and Photoshop CS5.

Usage

  1. Make sure Adobe Bridge CS5 and Adobe Photoshop CS5 are running
  2. Run the snippet in the ExtendScript Toolkit (ESTK), with Bridge as the target (see Readme.txt)
  3. Inspect the JavaScript Console in the ESTK to see the sequence of messages passing between Bridge CS5 and Photoshop CS5.
  4. Note; there is no other visible output besides the trace to the JavaScript Console of the ESTK.

Description

This script creates a BridgeTalk message object and sends it from Bridge to Photoshop. It prints to the JavaScript Console so you can see the order of arrival of the message and message responses.

Adobe Bridge CS5 and Adobe Photoshop CS5 must be running for this script to work. When Photoshop receives the message from Bridge, its default BridgeTalk.onReceive() method evaluates the script contained in the message body. That script causes Photoshop to send create some BridgeTalk messages and send them back to Bridge.

Defined in SnpSendMessage.jsx


Field Summary
 int numberOfMessagesToSend
          The number of messages to send back from Photoshop.
 String requiredContext
          The context in which this snippet can run.
 
Constructor Summary
SnpSendMessage()
           
 
Method Summary
 Boolean canRun()
           Determines whether snippet can be run given current context.
 Boolean run()
           Functional part of this snippet.

Field Detail

numberOfMessagesToSend

int numberOfMessagesToSend

requiredContext

String requiredContext

Constructor Detail

SnpSendMessage

SnpSendMessage()

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