• 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: iCal organization with dates & events & lists....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iCal organization with dates & events & lists....


  • Subject: Re: iCal organization with dates & events & lists....
  • From: John M <email@hidden>
  • Date: Fri, 18 Mar 2005 08:11:07 +0000

Hi,

I'm not sure, but I thought Applescript does date maths.

ie:

--
set date1 to (current date)
set x to "20/10/2005"
set date2 to (date x)

if date2 is greater than date1 then
	display dialog (date2 as text) & " is after " & (date1 as text)
else
	display dialog (date2 as text) & " is before " & (date1 as text)
end if
--

Best

John M

On 18 Mar 2005, at 07:58, Adam Wuellner  wrote:

On Thu, 17 Mar 2005 01:21:05 -0800 (PST), Patrick Collins
<email@hidden> wrote:
...Getting #1 accomplished would allow for sorting to work...

It might make it easier, but you've still got the problem caused by the US convention of printing dates in the format: MM/DD/YY[YY]. If you sort that numerically, it sorts by month, then day, then year. You probably want it sorted by year, then month, then day. Anyway, just something to think about.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Mail.app script help needed
  • Next by Date: Re: Image event scripting
  • Previous by thread: Re: iCal organization with dates & events & lists....
  • Next by thread: Re: iCal organization with dates & events & lists....
  • Index(es):
    • Date
    • Thread