On Friday, December 16, 2011 at
10:17 AM, Stephen Horne wrote:
I am
afraid I don't have a copy of InDesign, so I cannot test your specific
situation. However, it would be interesting to know what part of your
script is slow. Specifically, I would be interested in seeing some
benchmarking to indicate whether your script is wasting more time on the
"load_bridge_support_file" line or the
"SBApplication.applicationWithURL" line. (I suppose calls through to
InDesign could be the bottle neck as well, but that would be rather
unexpected I should think.)
You can probably
start off with Ruby's Benchmark library (with some decent documentation
here:
http://rubydoc.info/stdlib/benchmark/frames ,
though honestly you only really need "Benchmark.measure"). From there
it might be interesting to look at other profiling results, but best to
start simple.