Shows how to load and run a Flash movie using the ScriptUI FlashPlayer.
Shows how to pass a scripting DOM object from Adobe Photoshop CS4 to the ExtendScript toolkit in a BridgeTalk message.
Shows how to use a resource specification to build a ScriptUI window.
Shows how to create a ScriptUI window using a code-based method.
Shows how to use a tree-view list element, and how to capture events with either callback functions or script-registered event listeners.
Shows how to use a slider ScriptUI component.
Shows how to use a progress bar ScriptUI component.
Shows how to create a basic ScriptUI dialog.
Shows how to pass a custom JavaScript object using ExtendScript to another application (Adobe Photoshop CS4) in a BridgeTalk message, and pass it back in a response.
Shows how to send one or more files from ESTK CS4 to Adobe Photoshop CSS to be saved in PNG format.
Shows how to use the cross-DOM to open a file in Adobe Photoshop.
Shows how to use the Socket object to send emails with attachments using ExtendScript.
Shows how to use graphic objects to customize the drawing of ScriptUI elements.
use graphic objects to customize the drawing of ScriptUI elements.
Changes the colors of ScriptUI components dynamically, using the graphics customization objects. Displays sliders that allow the user to set the RGB components of a color, then creates new Pen and Brush types using those colors with methods of the ScriptUIGraphics objects associated with the window and panels.
To make the change in how the colors are drawn into the window on the screen, the example places the new Pen and Brush objects into the appropriate color properties of the graphics objects. The Pen is used to change the foreground, and the Brush is used to change the background.
Each Pen and Brush object is created with a brush type, a color value, and a line width. The color is given as an array of RGB values with a fourth number representing the Alpha channel (transparency) value. The range for all values is 0 to 1. For example, to set the background color of a window to a light grey:
graphicsObject.backgroundColor = graphicsObject.newBrush (g.PenType.SOLID_COLOR, [0.75, 0.75, 0.75, 1], 1);
See the JavaScript Tools Guide for more details.
Constructor
use the Socket object to send emails with attachments using ExtendScript.
You must edit the mailserver settings within this code; the code as shipped does not provide any default values for these settings and if you do not edit these settings in the code (see "NOTE" below), then the code will not run correctly.
This example uses the Socket object to send an email with multiple attachments, by writing to an SMTP server. Attachments are sent as binary data, encoded into Base64 encoding.
This sample sends a single email message at a time, and blocks the main thread until the message has been sent. You should select small files (under 100Kb) to send. For a non-blocking example, suitable for sending larger files, see BackgroundEmailer.jsx available in the Bridge SDK samples
Note that this sample is a demonstration of a technique; it may not run as expected with all mail servers, and is not intended to be a robust mail client.
use the cross-DOM to open a file in Adobe Photoshop.
The image file in the resources folder will be opened in Photoshop.
Constructor.
send files from ESTK CS4 to Adobe Photoshop CS4 to be saved in PNG format.
Uses interapplication messaging to send files from your chosen application to Photoshop to be saved in PNG format. When Photoshop receives the message, it begins processing the file.
Constructor
pass a custom JavaScript object using ExtendScript to another application (Adobe Photoshop CS4) in a BridgeTalk message, and pass it back in a response.
ExtendScript sends a BridgeTalk message to Photoshop, passing a JavaScript object. Photoshop reconstructs and modifies the object, then serializes the object and returns it as the result of the initial message.
In processing the result, ExtendScript evaluates the serialized object in order to reconstruct it.
Constructor
create a basic ScriptUI dialog.
Creates and shows a simple ScriptUI modeless dialog (also called a palette) with OK/Cancel buttons and event listeners that implement the button behavior.<br ./>
Constructor.
use a progress bar ScriptUI component.
Creates a dialog containing a progress bar, a button that updates its value periodically, and another button that resets the progress to 0.
Constructor.
use a slider ScriptUI component.
Creates a dialog containing a slider and a text component. The current value is reflected in the text.
Constructor.
use a tree-view list element, and how to capture events with either callback functions or script-registered event listeners.
Creates two TreeView hierarchical list components. One is static, with a fixed set of item nodes that you can expand and collapse. The other is dynamic; item nodes are added and removed as as needed to show a view of the filesystem.
The list items in the TreeView use custom images to display folders and files. When adding items to the TreeView list, the type 'item' is used for leaf elements and 'node' for container elements.
The dynamic TreeView captures events in two different ways. It uses callback functions to capture the node expand and collapse events and selection changes, and also registers an event listener to capture double-click events.
Constructor
create a ScriptUI window using a code-based method.
Demonstrates the use of the Window and container add() methods, building a simple palette (a modeless or floating dialog) containing an assortment of components.
AlertBoxBuilder2
use a resource specification to build a ScriptUI window.
Creates a resource-specifications string that defines the contents for a simple palette (a modeless or floating dialog). The contents are an assortment of user-interface components, the same ones that are created individually with the add() method in SnpCreateUIAddMethod.jsx.
AlertBoxBuilder2
pass a scripting DOM object from Adobe Photoshop CS4 to the ExtendScript toolkit in a BridgeTalk message.
Demonstrates passing a DOM object from Adobe Photoshop CS4 to Adobe ExtendScript toolkit via BridgeTalk. The passed script within the BridgeTalk message creates a File instance and then serialises it with toSource(). When the ESTK receives the BridgeTalk message response, it can access the DOM object created by Adobe Photoshop and its properties by using eval() on the 'resObj.body' which is returned to the callback function BridgeTalk.onResult().
Constructor
load and run a Flash movie using the ScriptUI FlashPlayer


Copyright© 2008 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks