To set up the Result History window:

Choose Script Editor > Preferences.

Click History.

Click Enable Result History to turn the result history on or off.

To maintain an unlimited number of history entries, select “Unlimited entries,” or select “Maximum entries,” and enter a maximum number in the field.