Article View: adobe.scripting.indesign
Article #1229Re: How to trace the document close event?
From: senthil_nagore
Date: Mon, 16 Feb 2009 07:30
Date: Mon, 16 Feb 2009 07:30
14 lines
937 bytes
937 bytes
Finally i get the job done!
#targetengine "session"
main();
function main(){
var myApplicationEventListener = app.eventListeners.add("beforeClose",myEventInfo, false);
alert('executed');
}
function myEventInfo(myEvent)
{
alert('Before Closing...');
var myString = "Current Target: " + myEvent.currentTarget.name;
alert(myString);
}
Technical Details
Message-ID:
<59b7f020.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b7f020.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,3bafe4ceb5870644 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: senthil_nagore@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: How to trace the document close event? Message-ID: <59b7f020.0@webcrossing.la2eafNXanI> Date: Sun, 15 Feb 2009 23:30:10 -0800 References: <59b7f020.-1@webcrossing.la2eafNXanI> Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit