Re: appending filenames daily with applescript
Re: appending filenames daily with applescript
- Subject: Re: appending filenames daily with applescript
- From: Rob Jorgensen <email@hidden>
- Date: Tue, 28 Nov 2000 21:19:28 -0500
On 11/28/2000, Chris Chattom commented on "appending filenames daily
with applescript":
<snip>
when i run this script everything works just how i want it to
except it renames the file "Idt" and gives me a message that says:
"Script Error: Finder got an error: Can't get date "Tuesday, November 28,
2000 4:09:11 PM"
so, obviuosly it is seeing the date, but the date when it is written all
of the way out like this is simply too long to fit into a filename...
if anyone has any ideas...
I had the exact same problem in a very similar situation and I solved
it with Tanaka's osax (freeware), which has a "MT Timestamp" command
which produces the following:
20001128204341
with 2000 being the year, 11 being the month, 28 being the date, 20
being the hour, 43 being the minutes and 41 being the seconds.
The finder doesn't have any problem with this (in regards to naming a
file), and unless your script can generate and name more than one
file per second, the names will be unique. :-)
Tanaka's Web Site: <
http://mtlab.ecn.fpu.ac.jp/tanaka_osax.html>
Later,
Rob Jorgensen
Ohio, USA