
CHAPTER 2: The ExtendScript Toolkit Configuring the Toolkit window 15
Document windows
When you open scripts or text files, each file appears in its own Script Editor document window. By default,
the document windows are docked; that is, shown as tabbed panes in the main window. However, like the
panels, you can drag any document window out of the frame to make it an independent floating window.
If you are displaying more than one document, and you have undocked one or more of them, you can
choose to show the document windows in tiled or cascade style—that is, side by side in the main window,
or overlapping in the main window. To do this, choose Window > Tile Documents or Window > Cascade.
You can edit or run scripts in multiple document windows simultaneously. The current document window
is highlighted and has the input focus. You can select another document window by clicking in it, or you
can switch between them with the commands Window > Next document and Window > Previous
document. The default keyboard shortcuts for these commands are F6 and S
HIFT-F6; you can change these
using the Keyboard Shortcuts page in the Preferences dialog (Edit > Preferences).
N
OTE: Because you can run scripts in the same application simultaneously, you should be careful not to
interrupt the processing of one script with another. For example, if one script opens a modal dialog in
Photoshop, and you run another script that targets Photoshop while the dialog is still open, the second
script is likely to generate an error.
A button in the upper right corner of the document window allows you to split that window.
When the window is split, the second window is another view of exactly the same source. Any changes
you make in the text, breakpoints that you add, and so on, appear simultaneously in both windows. The
copy is, by default, positioned to the right of the original, docked window, as shown. However, if you use
CTRL-click to split the window, the second appears below the original.
For more information about the document windows and the Script Editor, see “
The Script Editor” on
page 18.
Split document button Second view of document
Comentários a estes Manuais