I have been enjoying packaging some of my recent scripts in a Configurator plugin. This has been working fine, until now.
The script I have written steps through a csv file, placing a graphic on a page, and putting some text in a text frame. The script then exports to a PDF and saves as an InDesign file of a name from from the row in the csv file.
This works fine when executing from the ESTK, and if I run from the scripts panel as a script, or a compiled binary. If I save as binary and add a script file button in a configurator panel, then the script stops at about 170 lines (there are 220 lines in the CSV)
There is no error, and if I run the remaining lines separately afterwards they run ok. It looks like there is an additional overhead from running the script from a custom plugin. Does that sound right?
The complete script, processing all the lines in the CSV file takes about 5mins to run, so is quite busy, but I am monitoring the Macs performance, and there is no memory running away as far as I can see.
Any ideas on this would be great, or it would be interesting to see if anyone else has seen this same effect.
It does look like Configurator is failing me. The same binary called from an Applescript application I threw together in XCode runs to the end.
I know I need to bite the bullet and look into the CSSDK for making extensions, but is scares me!
Are there any samples I can pull apart? All I want the panel to do is trigger one or more script, nothing more.
Thanks in anticipation...
Have you tried wrapping your script in a try / catch block to make sure you aren't just triggering an exception that is getting lost along the way?
Yeah. Done that already. Got the catch set to alert(e) but has no
effect. Thanks for the response though.