🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1247

Run a script from a script

#1247
From: Seth_McGraw
Date: Mon, 16 Feb 2009 15:13
10 lines
1338 bytes
Can anyone help me run a script from a script to kill an event listener?
There is an event listener on save. The same script may be run multiple times before changing workflows (which require different sets of scripts).

The eventual goal is to have a time stamp in a specific text frame that will already have content. The new stamp will overwrite the old, and only happen before close. Right now it's set for "on save" because I can't figure out an if else statement for "before close". I don't want to have to end the session to be able to work different job types. I need to be able to kill the event listener when exiting documents that create one.

I'm throwing crap at the wall, hoping it will stick. I'm sure there's a better way to handle it. Anyone have ideas.

CS3 & CS4 javascript

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

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,f8ddc776849b52bb,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!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Run a script from a script
Message-ID: <59b7f103.-1@webcrossing.la2eafNXanI>
Date: Mon, 16 Feb 2009 07:13:23 -0800
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit