Script Editor Icon

Finding and replacing text

You can find and replace a word (or any set of characters) in an AppleScript script, regardless of how many times it occurs in the document.

You can search for text in the whole document or in a selected area of the document.

To find text:

Step 1

Choose Edit > Find > Find.

Step 2

Enter the text you want to search for.

To search for text without consideration for capital and lowercase letters, choose Ignore Case.

To search for text contained inside words, choose Contains from the pop-up menu (for example, if you type “most," Script Editor will also find “almost”).

To search for letters at the beginning of words, choose “Starts with.” To search only for the complete word you typed in the Find field, choose “Full word.”

Step 3

Click Next.