• 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: Getting human-understandable time from iCal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting human-understandable time from iCal


  • Subject: Re: Getting human-understandable time from iCal
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 28 Sep 2004 11:03:24 -0700


On Sep 28, 2004, at 5:02 AM, Martin Orpen wrote:

I’ve no problem divving and modding to get days/hours etc – but I need an
accurate month count too and presume that iCal, being a calendar...

This might help:

(July) - (March)

--> 3

You have to use the parentheses because Applescript removes the minus sign otherwise.

Unfortunately, it seems that you can't do the reverse.

((July) + 3) as month

--> Can't make 10 into a month.

But there is a workaround for that:

set the_months to {January, February, March, April, May, June, July, August, September, October, November, December}
item ((July) + 3) of the_months


--> October

--
Don't anthropomorphize computers.  They hate that.

_______________________________________________
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


References: 
 >Getting human-understandable time from iCal (From: Martin Orpen <email@hidden>)

  • Prev by Date: Re: iBooks and AirPort/Cisco login
  • Next by Date: Re: How to parse a textfile ?
  • Previous by thread: Re: Getting human-understandable time from iCal
  • Next by thread: Re: Getting human-understandable time from iCal
  • Index(es):
    • Date
    • Thread