Reference: Script Editor Program/Edit Menu
Replace the target text with the new text. Replace automatically includes any highlighted text as the Find what: selection. You have the option of performing one Replace at a time or doing a Replace All and operating on the entire script. Replace is also available from the keyboard using Ctrl+H.