🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #508

determine if file has never been saved in javascript

#508
From: christoph_pfaffenbichler
Date: Sat, 03 Jan 2009 15:17
4 lines
1131 bytes
Once again I have a question regarding a way to determine some quality in Photoshop:
Suppose I want to save all files that have been newly created and have not yet been saved in Photohop.
The saved-criterion would also include files that have been changed since the last save, so I thought the absence of a file-path would make for a good distinguishing characteristic; I only managed to successfully use that in a try-catch-clause though, which is bad form I�ve been told:
Is there another way to identify a document that has never been saved?
Technical Details
Message-ID: <59b76a8b.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,c148bdfc9cff5bad,start
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII
From: christoph_pfaffenbichler@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: determine if file has never been saved in javascript
Message-ID: <59b76a8b.-1@webcrossing.la2eafNXanI>
Date: Sat, 3 Jan 2009 07:17:43 -0800
Lines: 9
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit