• 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: 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

  • Follow-Ups:
    • Re: iCal organization with dates & events & lists....
      • From: "Patrick Collins" <email@hidden>
References: 
 >Re: iCal organization with dates & events & lists.... (From: Adam Wuellner <email@hidden>)
 >Re: iCal organization with dates & events & lists.... (From: "Patrick Collins" <email@hidden>)

  • Prev by Date: Re: getting chunks of text
  • Next by Date: Re: iCal organization with dates & events & lists....
  • Previous by thread: Re: iCal organization with dates & events & lists....
  • Next by thread: Re: iCal organization with dates & events & lists....
  • Index(es):
    • Date
    • Thread