|
|
I only get an error message in return
When I execute the script I get to the stage where I'm asked whether I want to change the Mod date, Creation date or Both. Selecting say the "Creation date" returns the error message:
error "dateUnixFormat FAILED: Invalid date and time date Thu Jan 1 1970 10:00:00." number -30720 from «script» to item Events and replies are:
tell application "AppleScript Editor"
display dialog "Choose a folder of files to change, or file(s)?" buttons {"Cancel", "Folder", "Files"} default button "Files"
--> {button returned:"Files"}
choose file with prompt "Choose the file(s) you want to change:" with multiple selections allowed
--> {alias "Macintosh HD:Users:Mack:Documents:TestFile.txt"}
display dialog "Change Mod date, Creation date, or Both?" buttons {"Mod", "Creation", "Both"} default button "Both"
--> {button returned:"Creation"}
end tell
tell current application
current date
--> date "Friday, 30 December 2011 11:04:28 PM"
do shell script "date -r 0 '+%a %b %e %Y %H:%M:%S'"
--> "Thu Jan 1 1970 10:00:00"
Any idea why?
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|