If ScanSnap Manager really wasn't running, the script got stuck, because it never got the focus
I have mended this by prefacing the apple script call with a KM action to ensure it's running
For more information, see the wiki Searching the Forum for Answers section.