The solution is this post from another thread, the link is below. The root of the problem was that KM is incapable of running user interaction events (display dialog, choose from list etc.) on its own in AppleScript and Java-AppleScript Bridge scripts unless you put any such statements in a frontmost application context. I was able to catch this error by selecting the show result in a window option of the Execute AppleScript script action.
2 Likes