Script Editor Icon

Replacing text in an application with a result

Script Editor allows applications to treat selected text as a script. In any application that supports the Services menu, you can select text and replace it with the results of an executed script.

Note: For AppleScript to execute the selected text, there must be one or more AppleScript commands that are syntactically correct.

To replace selected text in an application with a result:

Step 1

In an application that supports services, select the text you want to run.

Step 2

Choose the application menu >Services > Script Editor > Get Result of AppleScript.

Related Topics

Using Script Editor services in other applications