🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #340

Re: While closing the document ".exe" (or) a script should be get triggered?

#340
From: Michael_L_Hale
Date: Sun, 08 Feb 2009 00:40
5 lines
944 bytes
I had a look at the arguments of the close event. It seems if the user chooses Yes to the save changes dialog you can get the path to the file that was closed.

arguments[0].getPath(stringIDToTypeID('in'));

If they choose No or the doc's saved property was true, the path is not in the descriptor.
Technical Details
Message-ID: <59b7ccea.6@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b7ccea.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,5c072e6f04fd7471
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Michael_L_Hale@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Re: While closing the document ".exe" (or) a
 script should be get triggered?
Message-ID: <59b7ccea.6@webcrossing.la2eafNXanI>
Date: Sat, 7 Feb 2009 16:40:40 -0800
References: <59b7ccea.-1@webcrossing.la2eafNXanI>
Lines: 8
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit