• 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: Number of days left in the month
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Number of days left in the month


  • Subject: Re: Number of days left in the month
  • From: "Arthur J. Knapp" <email@hidden>
  • Date: Mon, 25 Nov 2002 11:04:47 -0500

> Subject: Re: Number of days left in the month
> Date: Sat, 23 Nov 2002 11:19:00 +0000
> From: Nigel Garvey <email@hidden>

> "Arthur J. Knapp" wrote on Fri, 22 Nov 2002 12:21:10 -0500:
>> Alright, the pressure is on: One of you two should be able to get this
>> down to exactly 7 characters of source code...

> That sounds more John Delacour's province. ;-)

> In mine, the one-liner for returning the number of complete days left in
> the month would be:
>
> tell (32 - (theDate's day)) to set x to it - ((theDate + it * days)'s
> day)
>
> But is it "maintainable"? ;-)

You could at least get into the spirt of trying to save every last
character possible:

tell 32 - (d's day) to set x to it - ((d + it * days)'s day)

;-)

{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
a r t h u r @ s t e l l a r v i s i o n s . c o m
}
_______________________________________________
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.

  • Prev by Date: Re: Is-it a bug in the finder ?
  • Next by Date: Re: Is-it a bug in the finder ?
  • Previous by thread: Re: Number of days left in the month
  • Next by thread: Making Terminal quit
  • Index(es):
    • Date
    • Thread