Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: ANN: automatic dialog after background export (exportPop.jsx)

$
0
0

Hi, Davey:

 

  Sorry for the delay, I didn't mean to let this sit for so long.

 

Anyhow, the debugging tells us that InDesign is doing two different exports of different type: Sangam Clipboard RTF Export and Sangam Clipboard Unicode Text Export. Again, I suspect it is a function of some other program running. If not two copies of InDesign, then InDesign and some Mystery App. So I'd suggest you try exiting everything else.

 

Anyhow, it's easy enough to filter them out of the script.

 

Right before this line:

 

        if (tasksPanel) { tasksPanel.visible=true; }

try adding

 

if (ev2.format.match(/Sangam/)) { return; }

 

which will cause the handler to ignore formats that contain the word "Sangam."

Note that this depends on the "ev2" being included in this line:

 

app.addEventListener("beforeExport", function(ev2) {

 

which wasn't in the original version of the script, but which we added in the debugging.

Hopfullly that's clear?

 

Let us know how it works!


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>