Adobe 38040334 API Reference - Page 122
Bridge communication functions, BridgeTalk.bringToFront, Bridgetalk.send
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 122 highlights
DREAMWEAVER CS3 117 API Reference Bridge communication functions The bridge communication functions allow communication between Dreamweaver and the Bridge application. One feature of this communication is to allow the user to browse files in Bridge easily from Dreamweaver. BridgeTalk.bringToFront() Availability Dreamweaver CS3. Description Makes the specified application the frontmost process, by calling the BridgeTalk::bringToFront() function. Arguments applicationID applicationID is a string,such as bridge or dreamweaver, that specifies the application to activate. Returns Nothing Example This example shows how Dreamweaver implements the browseInBridge() function. First, you create a BridgeTalk instance, then the two most important properties are set: target and body. is the target application. In this case it is the Bridge application. It's identifier is bridge. is the message to send. Usually is a script that the target application can understand and execute after it is received. The send() function is called to send the to the . if (!JSBridge.isRunning('bridge')) { var bt = new BridgeTalk; var scriptSavePath = browsePath.replace(/['"\\]/g, "\\$&"); var script = "app.document.thumbnail = new Thumbnail(decodeURI('" + scriptSavePath Send the script to bridge and give it 10 sec to launch before assuming an error. bt.target = "bridge"; bt.body = script; result = bt.send(10); } if (result) BridgeTalk.bringToFront('bridge'); Bridgetalk.send() Availability Dreamweaver CS3. Description Establishes communications with the Bridge application.