🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1269

Script Labels w/ Event Listeners

#1269
From: Seth_McGraw
Date: Fri, 13 Feb 2009 14:27
11 lines
1310 bytes
javascript -
There is now a working session event listener to time stamp a doc in a specific location in a text box on save.

When that type of template is not open however (when working a different kind of job) indesign errors because the label (text box) isn't there.

How can I call on the label to stop the event listener when a specific template type is not being used? It now tries to stamp all docs because the session is still open, and indesign has to be restarted. If we change workflows, I don't need the timestamp.

I wish there were a way to get to the document level instead of the session.
Any ideas on how to say in script "if the doc doesn't have this specific text box in this location, bypass the listener?"

Thanks
Technical Details
Message-ID: <59b7e784.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,1683d6d79b6140df,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Seth_McGraw@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Script Labels w/ Event Listeners
Message-ID: <59b7e784.-1@webcrossing.la2eafNXanI>
Date: Fri, 13 Feb 2009 06:27:20 -0800
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit