Save Renoise Song Programmatically?

Is there a way to save a renoise song programmatically? Nothing jumped out at me in the api. Did see this filename property.

– When the song is loaded from or saved to a file, the absolute path and name
– to the XRNS file is returned. Otherewise, an empty string is returned.
renoise.song().file_name
-> [read-only, string]

Programmatically? Guess you are referring to this though.

What are you trying to do?

Exactly what I needed. Was looking in the song api instead of app. Thanks for pointing me in the right direction.