Thanks for this. It worked in terms of getting the application to talk to FileMaker, just as you described.
I've filed a bug report with FileMaker. But it appears that they have broken a lot more in the AppleScript implementation (see http://forums.filemaker.com/posts/4b2544f7a4) such that it accepts events w/o delay (in some sort of parallel manner causing database deadlocks. It doesn't wait for internal scripts to finish before accepting another applescript -- which it use to. I'm now running into so many issues that I may just have to abandon version 11 until they fix them. On Jul 12, 2010, at 10:19 AM, has wrote: > John Jackson wrote: > >> I recently upgraded FileMaker to version 11, and discovered that my >> python-based application that relies on appscript to control a FileMaker >> database has broken. > > I believe that's a bug in FMP 11, where sending an ascr/gdte (get > terminology) event to FMP returns the default Cocoa Scripting terminology, > rather than FMP's actual dictionary. You should file a bug report with > FileMaker, as this will also affect scripting FMP from AppleScript via Remote > Apple Events. > > As a workaround, use the dump function in appscript.terminology to export the > FMP dictionary to a static module and pass that module when creating app > objects, like this: app('FileMaker Pro', terms=fmp11terminologymodule). Make > sure you run the dump command under 32-bit Python (use 'arch -i386' followed > by the path to the python interpreter in the Python.framework bundle) as it > uses OSAGetAppTerminology, which isn't present in OS X's 64-bit APIs. > > HTH > > has > -- > Learn AppleScript, 3rd edition, Sanderson & Rosenthal: > http://apress.com/book/view/9781430223610 > Control AppleScriptable applications from Python, Ruby and ObjC: > http://appscript.sourceforge.net > > _______________________________________________ > Pythonmac-SIG maillist - [email protected] > http://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG > _______________________________________________ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
