Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

owal

macrumors newbie
Original poster
Jan 19, 2011
1
0
Hi, I'm a newbie in applescript and mac programming. I'm trying to do a script to change the creation data of files. But I have a problem. The first code is working, but not the second one. I don't want to create variables that I won't use like "file_date" in the first code. Has anyone an idea how to the second code works?

tks,

owal

Code:
set file_ to choose file
tell application "Finder"
   set file_date to creation date of file_
   set time_date to time string of file_date
end tell


Code:
set file_ to choose file
tell application "Finder"
   set time_date to time string of (creation date of file_)
end tell
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.