How do I make Renoise send a wavefile (selected_sample_index) to an external app? I know how to boot up os.execute("appname") and i could send it a path to a sample, but how does one create a stable sample path?

How do I make Renoise send a wavefile (selected_sample_index) to an external app? I know how to boot up os.execute(“appname”) and i could send it a path to a sample, but how does one create a stable sample path?

So I wanna make Renoise send a sample directly to Ableton Live by referencing file with something? does the Renoise LUA API allow for referencing the selected_sample_index and delivering it as a wavefile “safely” (not talkin /tmp/blaablaa.wav - which would then consistently keep getting overwritten)