7.4

Table Of Contents
text, you move forward only within the selection. When the search reaches the end of the script or script selection, the
search finishes. It does not loop back to the beginning.
Backward: Select to search the script backward, from the location of the cursor or from the end of the script, depend-
ing on what you choose for the origin (From cursor begins where the cursor is currently located in the script, Entire
scope begins from the beginning of the script or beginning of script selection). If you limit the scope to selected text,
you move backward only within the script selection. When the search reaches the beginning of the script or script selec-
tion, the search finishes. It does not loop back to the beginning.
From cursor: Select to start the search from the position of the cursor.
Entire scope: Select to search either the entire script, or a script selection. The scope corresponds to a script selec-
tion if you make a selection before executing the Find.
3. Do one of the following:
l Click OK to replace the first string encountered. If you selected Prompt on replace, a dialog box opens to ask
you whether to proceed with the replacement. You can OK to replace the first string only, or you can click All to
replace that string as well as every other string that matches the replacement settings.
l Click Replace All to replace all the strings that match the replacement settings.
4. To find and replace the next matching string, choose Search | FindAgain or pressing F3. Once again, if you selected
Prompt on replace, a dialog box opens to ask you whether to proceed with the replacement. You can OK to replace
that string only, or you can click All to replace that string as well as every other string that matches the replacement
settings.
Go to a Line in a Script
The Go To Line dialog box lets you jump to a specific line within your script. It works whether or not the line number are dis-
played on the left side of the editor window (to know how to toggle the line number display settings, see Editor Options).
To go to a line in a script:
1. Click anywhere in the Script Editor, then choose Search | Go To Line, or press Alt+G.
The Go To Line dialog box appears. The last used line numbers are displayed in the Enter new line number
drop-down list box.
2. Enter a new line number in the Enter new line number box or select one from drop-down list.
3. Click OK.
Toggle Bookmarks
Bookmarks help you identify and jump to specific places within your script (see Jump to Bookmarks).
Bookmarks are displayed in the editor’s gutter, so you will not be able to see them unless the gutter is both visible and suf-
ficiently wide. If line numbers are also displayed in the gutter, bookmarks may be harder to see. To control line number and
gutter display, see Editor Options.
Note that bookmarks are not preserved when you close the editor.
To toggle bookmarks:
l Place the cursor on a line in your script and, from the editor’s pop-up menu, choose Toggle Bookmark and a given
bookmark number.
If the bookmark you selected was not displayed on any line, it is added to the line where you placed the cursor. If the book-
mark you selected was displayed on the line where you placed the cursor, it is removed. If the bookmark you selected was dis-
played on a different line, it is moved to the line where you placed the cursor.
Using Scripts