To track results:

In Script Editor, choose Window > Result History.
As you run a script, the returned results are displayed.

Click Show Script, or double-click a result to open the script in a separate window.
Script Editor allows you to store a working history of script results in log files. You can view and search the logs in the Result History window.
In Script Editor, choose Window > Result History.
As you run a script, the returned results are displayed.
Click Show Script, or double-click a result to open the script in a separate window.
You can modify the settings for the Result History in Script Editor preferences.