• 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: constructing file name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: constructing file name


  • Subject: Re: constructing file name
  • From: Graff <email@hidden>
  • Date: Mon, 23 Feb 2004 00:40:29 -0500

Just as easy, here is 1 day ahead:
------------
set tomorrow to (current date) + 1 * days
-- the next line formats the date into an integer with yyyymmdd format
set dateInt to ((year of tomorrow) * 10000) + (((month of tomorrow) as integer) * 100) + (day of tomorrow)
set remote_filename to "" & dateInt & "-da.csv"
------------

- Ken

On Feb 22, 2004, at 10:33 PM, Mike Bautsch wrote:

This is the type of thing I thought I would have to do. The only thing
I see wrong with this is the date is not fixed, it would have to be the
current date of any given day plus 1 day. I made a mistake in my
original post, the final output should be "20040223-da.csv" one day
ahead of the current date.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: constructing file name
      • From: Mike Bautsch <email@hidden>
References: 
 >Re: constructing file name (From: Mike Bautsch <email@hidden>)

  • Prev by Date: Re: Setting Finder window background picture
  • Next by Date: Re: Efficiently using whose on Address Book users
  • Previous by thread: Re: constructing file name
  • Next by thread: Re: constructing file name
  • Index(es):
    • Date
    • Thread