Temp files--sometimes deleted, sometimes not deleted

General notation questions, including advanced notation, formatting, etc., go here.

Moderators: Peter Thomsen, miker

User avatar
gogreen
Posts: 305
Joined: Fri Dec 02, 2016 12:50 am
Finale Version: Finale 26.3
Operating System: Mac

Post by gogreen » Thu Jan 12, 2017 3:19 pm

I've created a batch file to delete .tmp files, including those in the Finale temp files folder. The attached screenshot shows about two-thirds of the entire amount of Finale temp files that I deleted from one session. When I run the batch file, sometimes I delete many files. Sometimes they’re already gone.

Does anyone know in which circumstances Finale does and does not delete its temp files? I cannot identify a pattern to Finale's keeping temp files or deleting them appropriately.
Attachments
temp.PNG
temp.PNG (54.48 KiB) Viewed 4359 times
Art
Finale 27
NotePerformer, GPO5, COMB2
MacOS Ventura 13.6.4
https://www.amazon.com/dp/B08BRHBTHT/ref=sr_1_2?dchild=1&keywords=%22Arthur+J.+Michaels%22&qid=1593016536&sr=8-2


User avatar
zuill
Posts: 4418
Joined: Sat Dec 10, 2016 9:35 pm
Finale Version: Finale 2011-v26.3.1
Operating System: Windows

Post by zuill » Thu Jan 12, 2017 3:24 pm

If you do find an answer, please pass it on to MakeMusic, as I am convinced they don't know either.

Zuill
Windows 10, Finale 2011-v26.3.1
"When all is said and done, more is said than done."

User avatar
gogreen
Posts: 305
Joined: Fri Dec 02, 2016 12:50 am
Finale Version: Finale 26.3
Operating System: Mac

Post by gogreen » Thu Jan 12, 2017 4:53 pm

If you do find an answer, please pass it on to MakeMusic, as I am convinced they don't know either.
Good point. I agree.

I've pointed Finale 25's temp folder to an external drive, and this arrangement works fine. My only gripe is that when I start Finale for the first time after a startup or restart, Finale takes a moment longer to load because it's looking for the temp folder location, which it eventually finds. I may experiment later today to see if Finale won't start if the temp file location cannot be found. Or maybe Finale will just revert to the default location.
Art
Finale 27
NotePerformer, GPO5, COMB2
MacOS Ventura 13.6.4
https://www.amazon.com/dp/B08BRHBTHT/ref=sr_1_2?dchild=1&keywords=%22Arthur+J.+Michaels%22&qid=1593016536&sr=8-2

BuonTempi
Posts: 1297
Joined: Fri Aug 20, 2010 8:59 am
Finale Version: Finale 27
Operating System: Mac

Post by BuonTempi » Thu Jan 12, 2017 4:57 pm

How many Kb does this represent in total?

Is there any danger from having unused temporary files? Presumably, the OS wipes temporary files on reboot and/or some other scheduled interval.

User avatar
motet
Posts: 8225
Joined: Tue Dec 06, 2016 8:33 pm
Finale Version: 2014.5,2011,2005,27
Operating System: Windows

Post by motet » Thu Jan 12, 2017 5:02 pm

On Windows there are bugs associated with using the Windows temp directory with Finale, so most of us have a separate temp directory for Finale, which is not automatically cleaned out. I don't know actually that the standard Windows $USER/AppData/Local/Temp directory is cleaned out, either.

It at least used to be that when there were a lot of old temp files around, Finale got itself into trouble, but I don't know if they've fixed that. I've got two cleaup-up scripts, one that deletes the fin*.tmp files and another that cleans out the whole Finale temp directory, including .asv files and crash reports.

User avatar
gogreen
Posts: 305
Joined: Fri Dec 02, 2016 12:50 am
Finale Version: Finale 26.3
Operating System: Mac

Post by gogreen » Thu Jan 12, 2017 7:50 pm

Here's my delete.bat file, which removes most of the temp files I accumulate. I use it after I've saved my work. As I mentioned, sometimes my Finale temp folder is empty after a session and there's nothing to delete. At other times, it's LOADED with files--scores of them. I'm curious to know what goes on to make Finale, or Windows, keep the files sometimes and delete them at other times. :?
Attachments
deletebat.PNG
deletebat.PNG (6.92 KiB) Viewed 4315 times
Art
Finale 27
NotePerformer, GPO5, COMB2
MacOS Ventura 13.6.4
https://www.amazon.com/dp/B08BRHBTHT/ref=sr_1_2?dchild=1&keywords=%22Arthur+J.+Michaels%22&qid=1593016536&sr=8-2

User avatar
motet
Posts: 8225
Joined: Tue Dec 06, 2016 8:33 pm
Finale Version: 2014.5,2011,2005,27
Operating System: Windows

Post by motet » Thu Jan 12, 2017 8:07 pm

I've noticed it makes more temp files when you edit parts. They're just neglecting to delete some of them. Also, if the program crashes, nothing gets deleted. I don't know if Windows can do this, but the way a program should handle temp files is to open them and then immediately mark them for deletion when the file is finally closed. UNIX has been able to do this since 1972, so I guessing Windows can as well.

Post Reply