As the trail file is a simple text file, any script language for the OS You use will do the task. In UNIX, use e.g. 'sed' to replace the placeholders by the proper file name.
Tcl (www.tcl.tk) will do the task in all OS environments, and even offers a GUI.
Create a template trail file with placeholders (be sure to test it thoroughly, You may manually remove all scroll and zoom logs), then setup the script to read the list of files as input and for each input line assemble the trail file.
The solution depends on the level of comfort You desire...
To support the process, create a specific drawing template, which already has predefined views and other repeated drawing layout.