Thanks Flynnstone.
After several tests I found out you can't change the creation date to anything
later than the already existing creation date, only
earlier. I believe that didn't apply with earlier versions of OSX.
This may or may not be a problem for my task, but in the meantime I just found another command called
setfile and it appears to do what I want (change just the creator date/time). The downside is its non-standard date-format and the fact that it has to be downloaded separately along with the huge Xcode developer tools from Apple.
Does anyone know if it can be downloaded on its own, or if Apple allows redistributing it on its own? If I succeed in completing my script I'd like to share it with others, and as such it shouldn't be a huge hassle for most people to install.
Are there ways to embed terminal commands like these into a script of some sort so that people don't have to download an install a bunch of additional tools as well?
By the way, in case anyone's interested (apparently, according to lots of forum discussions on the matter, changing the creation date seems to be one of those things which are hard/impossible to do), here's the syntax I used to change a file's (a JPG in the example below) creation date to Jan 31st 2014, 13:21.
$
setfile -d "01/31/2014 13:21" FILENAME.JPG