Skip to main content
ishook
Known Participant
March 18, 2022
Question

Javascript no longer purges temp files

  • March 18, 2022
  • 1 reply
  • 935 views

For 3 years I've been using Java scripts in a large project with no problems. I have a few hundred near identical javascripts (just the output paths for saving are different). The files takes the open document which has a few hundred variables assigned, swaps them out, saves a jpeg, PURGES HISTORY, and then goes on to the next data set. Usually there are a few hundred data sets it goes through and takes a few hours. Anyway, it seems, maybe based on photoshop updating, that "app.purge (PurgeTarget.HISTORYCACHES)" no longer clears those temp files on the scratch disk. Manually going Edit>Purge>All will clear them - but doing it manually is not an option for so many files. 

 

When I'm running these data sets, it obviously fills up the scratch disk now. Is there a work-around or some updated javascript code I could put in my file?

This topic has been closed for replies.

1 reply

Kukurykus
Legend
March 18, 2022
ishook
ishookAuthor
Known Participant
March 18, 2022

I ran my normal scripts and began filling up the scratch disk with multiple 67GB files (which it shouldn't do, usually theres's one the entire time). Then I assigned f8 to purge, and ran the script you linked to to see if it did anthing. It did it's thing but the temp files stayed and one got bigger. 

Kukurykus
Legend
March 18, 2022

With held Ctrl?