Re: iCal organization with dates & events & lists....
Re: iCal organization with dates & events & lists....
- Subject: Re: iCal organization with dates & events & lists....
- From: Adam Wuellner <email@hidden>
- Date: Thu, 17 Mar 2005 15:31:54 -0600
On Thu, 17 Mar 2005 12:24:03 -0800 (PST), Patrick Collins
<email@hidden> wrote:
> This is not working.. I tried implimenting this sort of thing into my
> program, and i just keep getting "unrecognized date string"
Can you show exactly how you're using it? It should only return the
error text if the string you pass to it is not in a format that it can
coerce into a date object.
> Adam Wuellner wrote on 3/17/05, 12:03 PM:
>
> > set datetime_string to my date_time("September 18, 2004 11:00:00 PM")
> > -- "9/18/04 11:00:00 PM" (NB: can't get rid of the seconds without parsing text)
> > set datetime_string to my date_time("ooga booga")
> > -- "unrecognized date string"
> >
> > on date_time(date_string)
> > local my_date
> > try
> > set my_date to date date_string
> > return short date string of my_date & " " & time string of my_date
> > on error
> > return "unrecognized date string"
> > end try
> > end date_time
_______________________________________________
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