Class SnpSendMessageToInDesign
Object
|
+--SnpSendMessageToInDesign
- class
SnpSendMessageToInDesign
Demonstrates basic cross-application communication using BridgeTalk messages, communicating between Bridge CS5 and InDesign CS5.
Usage
- Make sure Adobe Bridge CS5 is running and Adobe InDesign CS5 is running.
- Run the snippet in the ExtendScript Toolkit,
with Bridge CS5 as the target (see Readme.txt)
- Inspect the JavaScript Console in the Toolkit to see the sequence of messages between Bridge CS5 and InDesign CS5.
- Switch to InDesign CS5; you should see a new document has been created, with a populated text frame.
Description
This script creates a BridgeTalk message object and sends it from Bridge CS5 to InDesign CS5. The message sends a function
(createInDesignObjects()), which is executed in the scripting engine of InDesign CS5 to create a new document with a populated text frame.
Defined in SnpSendMessageToInDesign.jsx
Field Summary |
String |
requiredContext
The context in which this snippet can run. |
Method Summary |
Boolean
|
canRun()
Determines whether snippet can be run given current context.
|
Boolean
|
run()
Functional part of this snippet.
|
requiredContext
String requiredContext
The context in which this snippet can run.
SnpSendMessageToInDesign
SnpSendMessageToInDesign()
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
- InDesign 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 InDesign.
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