I read this earlier and did some digging. I believe that it can be done without too much scripting. However I am not a AS person, so I cannot tell you how.
As far as I know, everything in the Finder is scriptable, including all menus, popups, contentuals etc.
Have you tried digging around on some of the Apple Script sites such as scriptbuilders.net?
Xcode is much more powerful than AS, so if it cant be done with AS, I am pretty sure it can with Xcode.