Smart Rule scripts supporting inline AppleScriptObjC

Thank you for mentioning this. I had been working (for far too long) on some new AppleScript code for smart rules, and after a ridiculous amount of time getting it working (in a debugger, outside of DEVONthink), when I put everything together in a smart rule, I got the dreaded error -1708. After searching and finding discussions in this forum, it seemed like the only solution was to set things up as a script library – not terrible, but would have required even more work and time. This posting of yours gave me a glimmer of hope that it could be made to work somehow, and that the root of the problem had something to do with scoping or type conversions or collisions of some sort. It inspired me to keep searching, and eventually to a discovery described in this posting:

1 Like