To stop the script, press Esc on Windows (or Command-period on Apple macOS). You can also select Edit > Stop Script. On Apple macOS, Edit > Stop Script is available only when the script is running.