Change Creation, Modified Dates
Change Creation, Modified Dates
- Subject: Change Creation, Modified Dates
- From: Marconi <email@hidden>
- Date: Sat, 9 May 2009 07:58:45 -0700
Given two files, one a '.mpg' and the other named identically plus
'.txt' I need to read the first line of the txt file and find the
date there, then change the creation and modification dates of both
files -- the mpg and the txt -- to that date.
So, I'm trying to cobble together a droplet to do so to file pairs.
Example file pair:
A File Name - That may contain Spaces.mpg
A File Name - That may contain Spaces.mpg.txt
The first line of the text file will be thus:
time : 2007-04-12T03:00:00Z
I need to extract the year, month and day from "2007-04-12" and then
set the creation and modification dates of both files to that date.
(The hours, minutes and seconds can be left as is.)
In its simplest form, I'd drag files to the droplet in pairs. A
handier version would allow dropping of a folder, which it would
walk, reading each text file, extracting the date then modify the
creation and modification dates of the text file and its matching mpg.
I'm stumped at extraction of the month, day and year from the text
file of a dropped pair.
--
'Login' is not a verb!
<http://www.otfb.com/blog/?p=907>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden