• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: appending filenames daily with applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: appending filenames daily with applescript
      • From: John W Baxter <email@hidden>
References: 
 >appending filenames daily with applescript (From: Chris Chattom <email@hidden>)

  • Prev by Date: RE: Applescript differences between OS 8 and 9...
  • Next by Date: RE: Applescript differences between OS 8 and 9...
  • Previous by thread: appending filenames daily with applescript
  • Next by thread: Re: appending filenames daily with applescript
  • Index(es):
    • Date
    • Thread