UPDATE:
Modified the file path and it worked to change the modified date/time but for some reason not the create date/time. Also would not work with the -m or -a operators.
tell application "Finder"
set selectedFiles to (get selection)
repeat with i from 1 to count of selectedFiles
set thisFile to item i of selectedFiles
set thisName to name of thisFile
set yy to first word of thisName
set newDate to yy & "01010000"
do shell script "touch -t " & newDate & " /Users/usernamehere/Desktop/TempPhotos/" & quoted form of thisName
end repeat
end tell
Topic:
App & System Services
SubTopic:
Automation & Scripting
Tags: