Hi Josh.
I've had a look at benchmark, and it seems it is the bit that creates the link to InDesign that's the bottleneck. Here's the code I used: #!/usr/local/bin/macruby framework 'ScriptingBridge' require 'benchmark' Benchmark.bm(7) do |x| x.report("load_BSF: ") { load_bridge_support_file '/Users/fatboy/inDesign.bridgesupport'} x.report("Create NSURL:") { @appurl = NSURL.fileURLWithPath("/Applications/Adobe Indesign CS5/Adobe InDesign CS5.app")} x.report("Link to ID: ") { @id = SBApplication.applicationWithURL(@appurl)} x.report("Link to doc1:") { @doc = @id.activeDocument} end and here's the report it returned: user system total real load_BSF: 0.130000 0.000000 0.130000 ( 0.109424) Create NSURL: 0.000000 0.000000 0.000000 ( 0.001404) Link to ID: 27.770000 1.270000 29.040000 ( 14.824474) Link to doc1: 0.000000 0.000000 0.000000 ( 0.000127) Fb
|
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel