Thread View: adobe.scripting.indesign
3 messages
3 total messages
Started by Seth_McGraw
Fri, 13 Feb 2009 14:27
Script Labels w/ Event Listeners
Author: Seth_McGraw
Date: Fri, 13 Feb 2009 14:27
Date: Fri, 13 Feb 2009 14:27
11 lines
1310 bytes
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
Re: Script Labels w/ Event Listeners
Author: Dave_Saunders
Date: Fri, 13 Feb 2009 17:22
Date: Fri, 13 Feb 2009 17:22
4 lines
717 bytes
717 bytes
myTextFrame = myDoc.textFrames.itemByName("LabelMe");
if (myTextFrame != null) {
// do your thing
}
Re: Script Labels w/ Event Listeners
Author: Seth_McGraw
Date: Fri, 13 Feb 2009 20:29
Date: Fri, 13 Feb 2009 20:29
11 lines
1174 bytes
1174 bytes
I'll check that out. Thanks Because the session listener is in the production script, it stacks everytime that script is run, creating a confirmation for each iteration of the script cycle. The time stamp displays a confirmation everytime the script is run. I only want the time stamp to happen when the document is closed. On save was a comprimise. Any idea on how to accomplish this? _______________________ Also in a different scenario I would like to call on another script from within a script. How do you run a script from a script? Anyone?
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads