Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'recommend restoring AS TIDS' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
recommend restoring AS TIDS
Authored by: ctierney on Jan 03, '07 10:00:34AM
That's good advice to restore TIDS. Here's another method that off loads the filename parsing to sed. Not nearly as readable, but any non digit can be the delimiter:
on open files_
	repeat with file_ in files_
		tell application "Finder"
			set file_name to name of file_
			set file_ to POSIX path of file_
			do shell script "touch -t `echo " & file_name & " | sed -ne 's/.*\\([0-9]\\{8,8\\}\\).*/\\10000/p'` \"" & file_ & "\""
		end tell
	end repeat
end open


[ Reply to This | # ]
change date/time - different format
Authored by: idarryl on Feb 06, '08 07:33:11AM

Hi Guys,

(sucking up section - skip ahead for the real question)
I'm sorry to bug you - I'm sure you don't want to write personalised scripts for everyone, however I have been trying to figure something out for myself for a few hours now using your *wonderful* scripts as a head start, and I just can't work it out.


I'm trying to do the same thing but with iChat log files, the file format is a little more difficult "Persons Name on 2007-08-04 at 13.56.ichat", if possible I would like to set the time as well, as iChat logs are pretty time sensitive for me.

Unfortunately, when I moved ove to Leopard, the date and time were reset!!

Thanks for your help



[ Reply to This | # ]