I'd ask this in the general scripting forum, but it seems pretty dead over there. I created a script that parses the file name and saves it based on a location I would like, but for older files, I'd like to forego resaving it to preserve time stamps, and move these files to the new location, as they were sorted differently long ago. Is this possible? I found "changePath" in the general scripting documentation, but although it returns true, it doesn't actually move the file.
Use app.system and pass it a command line that does what you need.
Here's an example for how to get this to work for those trying to do a similar thing on a mac:
app.system("osascript -e 'tell application \"finder\" to display alert(\"You did it!\")'");