Adobe 65009963 Scripting Guide - Page 5
The ExtendScript JSX format, Activating full scripting features
UPC - 883919156262
View all Adobe 65009963 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 5 highlights
Overview Activating full scripting features 5 The ExtendScript JSX format After Effects supports ExtendScript, Adobe's extended implementation of JavaScript. ExtendScript is used by all Adobe applications that provide a scripting interface. In addition to implementing the JavaScript language according to the ECMA 262 and E4X ECMA 357 specifications, ExtendScript provides certain additional features and utilities: ExtendScript Toolkit: For help in developing, debugging, and testing scripts, ExtendScript provides an interactive development and testing environment, the ExtendScript Toolkit. It also defines a global debugging object, the dollar ($) object, and a reporting utility for ExtendScript elements, the ExtendScript Reflection interface. File and Folder Objects: Because path name syntax is very different in different operating systems, Adobe ExtendScript defines File and Folder objects to provide platform-independent access to the underlying file system. ScriptUI User Interface Module: The ExtendScript ScriptUI module provides the ability to create and interact with user interface elements. ScriptUI provides an object model for windows and UI control elements that you can use to create a user interface for your scripts. Tools and Utilities: In addition, ExtendScript provides tools and features such as a localization utility for providing user-interface string values in different languages and global functions for displaying short messages in dialog boxes (alert, confirm, and prompt). Interapplication Communication: ExtendScript provides a common scripting environment for all Adobe applications, and allows interapplication communication through scripts. External Communication: ExtendScript provides a Socket object that allows you to communicate with remote systems from your After Effects scripts. These features and more are described in detail in the JavaScript Tools Guide, which is available with After Effects, and from partners.adobe.com. ExtendScript script files are distinguished by the .jsx file extension, a variation on the standard .js extension used with standard JavaScript files. After Effects scripts must include the .jsx file extension in order to be properly recognized by the application. Any UTF-8 encoded text file with the .jsx extension is recognized as an ExtendScript file. You can use the ExtendScript Toolkit to export a binary version of an ExtendScript file, which has the extension .jsxbin. Such a binary file may not be usable with all of the scripting integration features in After Effects. Activating full scripting features For security reasons, the scripting features that operate outside the After Effects application (such as adding and deleting files and folders on volumes, or accessing the network) are disabled by default. To enable these features, choose Preferences > General, and select "Allow Scripts To Write Files And Access Network." This allows you to: • Write to files • Create folders and set the current folder • Create a socket connection (for details of this JavaScript utility, see the JavaScript Tools Guide) 5