I have written a script in Bridge CS3, running on Windows XP, that will move a folder full of images from its current location to another location. For example, it will move the folder "g:\working\2007-06-05 Stuff" to "g:\dslr\2007\06 Jun\2007-06-05 Stuff." The script is invoked by a context menu and implements part of my workflow strategy.
I am using the thumbnail moveTo() method to move the folder. In the above example, if "g:\dslr\2007\06 Jun" exists, then moveTo() works fine. However, if the directory tree does not exist, moveTo() apparently does not create parent directories automatically. So it appears I have to create the parent directory(ies) myself.
How do I create those parent directories? Just creating new Folder objects in JavaScript doesn't cause the directory to be created in the file system (as expected since Javascript is intended to protect the file system from change). I haven't found any ExtendScript tools that appear to create directories.
How can I accomplish this?
Thanks!
Guy