PS: DEVONthink already comes with some built-in folder action scripts. This is discussed in the Automation > Folder Actions section of the built-in Help and manual…
Bear in mind, folder actions are run by the Folder Actions Dispatcher, a separate process controlled by the OS, not us.
