Article View: adobe.scripting.indesign
Article #1950Re: [CS3 JS] How to Create a Timer?
From: Kasyan Servetsky
Date: Wed, 21 Jan 2009 19:26
Date: Wed, 21 Jan 2009 19:26
23 lines
1029 bytes
1029 bytes
Eliot,
To illustrate what I mean here is an example:
Create a controller and attach this script to it, set Event Filter to 'idle'.
if (theItem.dataStore > 10){
doSomething();
theItem.dataStore = 0;
}
else
{
theItem.dataStore = theItem.dataStore + 1;
}
function doSomething(){
alert("Time is up.");
}
Kasyan
Technical Details
Message-ID:
<59b792d3.7@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossingReferences:
<59b792d3.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,739e585aceac2770 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Kasyan Servetsky" <askoldich@yahoo.com> Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: [CS3 JS] How to Create a Timer? Message-ID: <59b792d3.7@webcrossing.la2eafNXanI> Date: Wed, 21 Jan 2009 11:26:03 -0800 References: <59b792d3.-1@webcrossing.la2eafNXanI> Lines: 12 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit