TextEdit Icon

Automating TextEdit tasks with AppleScript

TextEdit includes AppleScript terms that let you automate tasks using scripts. You can use scripts to add text, copy information, set styles, or export information from a TextEdit document for use by another application.

To see the TextEdit terms and write scripts, you can use Script Editor, included with Mac OS X.

To view TextEdit's AppleScript dictionary:

  1. In the Finder, open a window showing the Script Editor icon, located in the /Applications/AppleScript folder.
  2. Open another window showing the TextEdit icon.
  3. Drag the TextEdit icon onto the Script Editor icon.

To learn more about AppleScript and how to use scripting terms, see AppleScript Help.

To learn more about AppleScript, visit the AppleScript website.

Open this for me

AppleScript website

TextEdit AppleScript Dictionary