Well, it's a work around, not a solution. But given that you went to the effort of knocking up a script for this issue suggests that my wishlist request is valid at least.
My solution was not the script but using a free app such as SyncBackFree as a middle man.
Well at least you now have two possible solutions for your issue.
Both are free, not hard to setup, and can be fully automated.