🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #180

Programatically delete Photoshop Temp##### files

#180
From: JeffreyDeRousse
Date: Sat, 07 Mar 2009 14:25
15 lines
1273 bytes
XP Pro
CS3
1GB Ram
Scripting with JavaScipt

We run photoshop doing batch processes all week long. Is there anyway to include in the javascript batch process a command to delete the temp file that gets built up. I realize they are normally deleted upon proper program termination but that doesn't always happen.
Since the name appears somewhat with random numbers I am not sure how I could point directly at that, the constant appears to be "Photoshop Temp" but there is also the numbers at the end of that file name to consider.

or for another consideration (secondary).

Can I put at the end of the batch command a line of code to close Photoshop? If so what would that be?

Thank you,

Jeff
Technical Details
Message-ID: <59b82656.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,1b7252e985494225,start
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: JeffreyDeRousse <jderousse@vertisinc.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Programatically delete Photoshop Temp##### files
Message-ID: <59b82656.-1@webcrossing.la2eafNXanI>
Date: Sat, 7 Mar 2009 06:25:11 -0800
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit