• 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: Paul Berkowitz <email@hidden>
  • Date: Mon, 23 Feb 2004 09:51:16 -0800

It only works in Panther. In earlier versions you have to put al the month
names in a list and count which one it is you've got.

--
Paul Berkowitz


> From: Mike Bautsch <email@hidden>
> Date: Mon, 23 Feb 2004 07:14:52 -0500
> To: Graff <email@hidden>
> Cc: Applescript Users <email@hidden>
> Subject: Re: constructing file name
>
> I ran into an error on this:
>
> "Can't make February into a integer"
>
>
> On Monday, February 23, 2004, at 12:40 AM, Graff wrote:
>
>> 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.
> _______________________________________________
> 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.
_______________________________________________
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.

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

  • Prev by Date: Re: AppleScript Replace text in item names
  • Next by Date: Re: True Optional Handler Parameters (Positional)
  • Previous by thread: Re: constructing file name
  • Next by thread: Re: constructing file name
  • Index(es):
    • Date
    • Thread