Does anyone know why this Date Modified script is not working anymore in Mavericks?
I know there are some security issues in Mavericks and I have added applescript, finder, terminal and the script itself (Saved as application) in the Accessbility tab in security and privacy.
When dragging a file onto the script application the date modified changes in 14-12-2036 (!)
Whats going wrong here???
I know there are some security issues in Mavericks and I have added applescript, finder, terminal and the script itself (Saved as application) in the Accessbility tab in security and privacy.
When dragging a file onto the script application the date modified changes in 14-12-2036 (!)
Whats going wrong here???
Code:
on open files_
display dialog "enter the new creation date in format YYYYMMDDhhmm ex: 200112251730:" default answer "" buttons {"Cancel", "Continue"}
copy the result as list to {the new_creation_date, the button_pressed}
repeat with file_ in files_
tell application "Finder"
set file_ to POSIX path of file_
do shell script "touch -t " & new_creation_date & " " & quoted form of file_
end tell
end repeat
end open