Adding an Automation script
From Aegisub Wiki
This tutorial will show you how to add an already written Automation script to Aegisub.
Loaded Automation scripts are saved along with your ASS file, when you save it, so they will also be instantly available next time you open your subtitles.
Open the Automation Manager window:

Click the Add button:

Navigate to the \Program Files\Aegisub\automation\ folder:
It should contain three sub-folders: demos, factorybrew and include. Here, we're interested in the factorybrew one, since it contains a couple of pre-made scripts you can configure for your own needs.
Navigate to the factorybrew folder.
Select the simple-k-replacer.lua file and click Open:

simple-k-replacer.lua is now loaded!

You can now proceed to the other Automation tutorials.

