EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Especificações Página 185

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 304
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 184
CHAPTER 5: Interapplication Communication with Scripts BridgeTalk message object 185
BridgeTalk message object
The message object defines the basic communication packet that is sent between applications. Its
properties allow you to specify the receiving application (the
target), the data to send to the target (the
body), and the type of data that is sent. The messaging protocol is extensible; it allows you to define new
types of data for the type property, and to send and receive arbitrary additional information with the
headers property.
BridgeTalk message object constructor
Create a new message object using a simple constructor:
var bt = new BridgeTalk;
Before you send a message to another application, you must set the target property to the receiving
application, and the
body property to the data message (typically a script) you want to send.
ping()
BridgeTalk.ping (specifier, pingRequest)
specifier
A specifier for the target application; see Application specifiers” on page 191.
pingRequest
An identifying key string for a specific type of return value. One of:
X STATUS: Returns the processing status; see getStatus().
X DIAGNOSTICS: Returns a diagnostic report that includes a list of valid ping keys.
X ECHO_REQUEST: Returns ECHO_RESPONSE for a simple ping request.
Sends a message to another application to determine whether it can be contacted. Returns a string
whose meaning is defined by the ping-request key.
pump()
BridgeTalk.pump ()
Checks all active messaging interfaces for outgoing and incoming messages, and processes them if
there are any.
Returns true if any messages have been processed, false otherwise.
(Most applications have a message processing loop that continually checks the message queues, so
use of this method is rarely required.)
Vista de página 184
1 2 ... 180 181 182 183 184 185 186 187 188 189 190 ... 303 304

Comentários a estes Manuais

Sem comentários