pub fn save(path: &Path) -> Result<()>
Write the recorded script to path.
path
Returns the I/O error when path cannot be written.