
CHAPTER 2: The ExtendScript Toolkit Selecting scripts 17
Selecting scripts
You can open multiple scripts (or text files, including programs in other languages). You can find and open
scripts in a number of ways:
X Use File > Open to bring up the platform-specific file browser.
X Choose from recently opened files using File > Recent files.
X Create a new script using File > New JavaScript.
X Drop files from the Explorer or the Finder onto the Toolkit to open them in a document window.
X For JavaScript scripts in trusted locations (the user-script folders of installed Adobe applications), a
double-click on the file runs it in the target application or in the Toolkit. For script files in other
locations, you must confirm that you want to run the script.
X Search for scripts containing particular text using Edit > Find and Replace. You can search in a
particular document window, among all scripts open in document windows, or among scripts
associated with an application, or kept in favorite locations. See “
Searching in text” on page 24.
X Use the Scripts panel to display and open scripts made available by loaded Adobe applications, or
those kept in favorite locations.
The Scripts panel and favorite script locations
The Scripts panel offers a list of debuggable scripts, which can be JS or JSX files or (for some applications)
HTML files that contain embedded scripts.
You can display a list of scripts made available by a particular target application. Select the target
application in the leftmost drop-down list; the available JavaScript engines for that application become
available in the right-hand list.
When you select a target application, the Toolkit offers to open that application if it is not running, then
displays the scripts which that application makes public. Select a script in this panel to load it and display
its contents in a new document window, where you can modify it, save it, or run it within the target
application.
When you choose the target Favorites, the right-hand list shows the default favorite script location, and
any other favorite locations that have been defined. You can create your own list of favorite script locations
using the flyout menu.
Comentários a estes Manuais