Plenty of examples of file I/O for Python out there. You can even write a nice CSV file directly (or add a library to write to Excel files).
My path-csv python script exports a path to a CSV file, so you can use it as an example (or use it directly if instead of using selections you use paths).
I'm not even sure that you can do proper file I/O in Script-fu, which is a very reduced dialect of Scheme.
My path-csv python script exports a path to a CSV file, so you can use it as an example (or use it directly if instead of using selections you use paths).
I'm not even sure that you can do proper file I/O in Script-fu, which is a very reduced dialect of Scheme.