AppleScript: Move files via drag and drop
Change the following line of code from:

move a to folderSpool


To:

move theCurrentDroppedItem to folderSpool


In your code, a is an integer, indexed from 1 to length of theDroppedItems, so you were trying to move an integer (which of course you can't) not the file, which is theCurrentDroppedItem.