@peternlewis It would be nice to have an option in the "Write Variable to File" action to just overwrite an existing file without moving it to the trash.
I'm currently solving this by checking to see if the file exists before I overwrite it, and deleting it if it does exist. But it would be nice if I didn't have to do this.
You might wonder why I'm noticing this behavior. I'm experimenting with saving some large "state" data to disk instead of storing it in a variable, and that means I may save the data many times in a short period of time. Which clutters up the trash pretty quickly.
Feel free to ignore this suggestion, but have you considered using an SQLite database for your state data? If you’re saving large volumes of data frequently it sounds like an ideal use case for SQLite.
You would then only have one database file and nothing going to the trash, and would also potentially benefit from being able to query the database for subsets of your data as you need it in your macro(s).
Thanks for the idea, but this isn't worth that kind of effort. Especially since I'll be sharing this with everyone, and setting up a sql database is way overkill for this.