I have a table that I've manually edited extensively and am looking to save the script for so I can automate in the future. I've written the following script (intended to be pasted into data table or allow user to run independently), which works, but I have to copy & paste into a text file to save:
dt = Current Data Table();
If( Is Empty ( dt ),
Try( dt = Open(), Throw("No data table found"))
);
Open Log();
dt << Get Script;
If I add the line Save Log (" "); it correctly saved the log, but only up to the transcript of the executed script and no longer contains the output of dt << Get Script;. I've tried many iterations of reordering the commands, but can't get the saved log to match the viewed log:
dt = Current Data Table();
If( Is Empty ( dt ),
Try( dt = Open(), Throw("No data table found"))
);
Open Log();
dt << Get Script;
Save Log("");