EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Spezifikationen Seite 189

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 304
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 188
CHAPTER 5: Interapplication Communication with Scripts BridgeTalk message object 189
BridgeTalk message object functions
send()
bridgeTalkObj.send ([timoutInSecs[, launchParameters]])
timoutInSecs
Optional. A maximum number of seconds to wait for a result before returning
from this function. The message is sent synchronously, and the function does
not return until the target has processed the message or this number of
seconds have passed.
If not supplied or 0, the message is sent asynchronously, and the function
returns immediately without waiting for a result.
launchParameters
Optional. A string of parameters to append to the name of the target
application when launching it, if the application is not already running.
If the target application is already running, this value is ignored.
Sends this message to the
target application.
Returns true if the message could be sent immediately, false if it could not be sent or was queued
for sending later.
If the target application is not running and the message contains a body, the messaging system
automatically launches the target application, passing in any supplied launch parameters. In this
case, the message is queued rather than sent immediately, and this method returns false. The
message is processed once the application is running.
Sending the message does not guarantee that the target actually receives it. You can request
notification of receipt by defining an onReceived
callback for this message object. (Note that this is
different from the static onReceive
method of the BridgeTalk class that handles unsolicited
messages.)
sendResult()
bridgeTalkObj.sendResult (result)
result
You can send data of any type as the result value. The messaging framework
creates a BridgeTalk message object
, and flattens this value into a string
which it stores in the
body of that message. See Passing values between
applications” on page 176.
When processing an unsolicited message, the static
BridgeTalk onReceive method can return an
intermediate result to the sender by calling this method in the received message object. It invokes
the onResult
callback of the original message, passing a new message object containing the
specified
result value.
This allows you to send multiple responses to messages.
Returns true if the received message has an onResult
callback defined and the response message
can be sent, false otherwise.
Seitenansicht 188
1 2 ... 184 185 186 187 188 189 190 191 192 193 194 ... 303 304

Kommentare zu diesen Handbüchern

Keine Kommentare