Class SnpSendMessage
Object
|
+--SnpSendMessage
- class
SnpSendMessage
Demonstrates basic cross-application communication using BridgeTalk messages, between Bridge CS5 and Photoshop CS5.
Usage
- Make sure Adobe Bridge CS5 and Adobe Photoshop CS5 are running
- Run the snippet in the ExtendScript Toolkit (ESTK),
with Bridge as the target (see Readme.txt)
- Inspect the JavaScript Console in the ESTK to see the sequence of messages passing between Bridge CS5 and Photoshop CS5.
- 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
Method Summary |
Boolean
|
canRun()
Determines whether snippet can be run given current context.
|
Boolean
|
run()
Functional part of this snippet.
|
numberOfMessagesToSend
int numberOfMessagesToSend
The number of messages to send back from Photoshop.
requiredContext
String requiredContext
The context in which this snippet can run.
SnpSendMessage
SnpSendMessage()
canRun
Boolean canRun()
Determines whether snippet can be run given current context. The snippet
fails if these preconditions are not met:
- Must run in Bridge
- Photoshop must be running
Returns:
True if this snippet can run, false otherwise
run
Boolean run()
Functional part of this snippet.
Constructs the BridgeTalk message, including an onResult callback,
and passes it to Photoshop.
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