• 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: duplicating files and adding today's date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: duplicating files and adding today's date


  • Subject: Re: duplicating files and adding today's date
  • From: Jolly Roger <email@hidden>
  • Date: Mon, 27 Nov 2000 20:24:49 -0600
  • Replyto: email@hidden

on 11/27/2000 5:07 PM, Chris Chattom wrote:

> if anyone knows how to have the file renamed with the current date, that would
> be most helpful...

You could use this to grab a formatted date (YYMMDD):

on FormatDate(theDate)
set theDate to theDate as date
set dd to text -2 thru -1 of ("0" & theDate's day)
copy theDate to tempDate
set the month of tempDate to January
set mm to text -2 thru -1 of ,
("0" & 1 + (theDate - tempDate + 1314864) div 2629728)
set yy to text -1 thru -4 of ((year of theDate) as text)
return (yy & mm & dd as text)
end FormatDate

JR


References: 
 >duplicating files and adding today's date (From: Chris Chattom <email@hidden>)

  • Prev by Date: Re: I didn't type that! What happened to my email?
  • Next by Date: Re: Folder actions on mounted folders
  • Previous by thread: Re: duplicating files and adding today's date
  • Next by thread: Re: duplicating files and adding today's date
  • Index(es):
    • Date
    • Thread