Two-way sync with Dropbox?

I suspect you are attempting to create a folder action script, when this script is a triggered script in DEVONthink. You want to follow the directions in the first post in this thread to attach the script to the indexed groups in the database.