• 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: AppleScript is tremendously versatile about understanding dates (almost too versatile)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript is tremendously versatile about understanding dates (almost too versatile)


  • Subject: Re: AppleScript is tremendously versatile about understanding dates (almost too versatile)
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 10 Jan 2004 10:02:19 -0800

On 1/10/04 9:51 AM, "Peter Wait" <email@hidden> wrote:

> Well, probably; but not for a novice.
>
> I've converted a date to a string, and stored it in an application field
> defined as Unitext. It works fine in the application as a date. But when I
> try to get it back in my script as a date (coercing it with "as date"),
> AppleScript won't do it, saying its not a date. But it is a date, only in
> text format.
>
> How do I get it back? Do I have to do twelve if statements on the month, or
> something awful like that?
>

Just put the word 'date ' in front of the text instead of 'as date' after
it.


--
Paul Berkowitz
_______________________________________________
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.

References: 
 >Re: AppleScript is tremendously versatile about understanding dates (almost too versatile) (From: Peter Wait <email@hidden>)

  • Prev by Date: Re: AppleScript is tremendously versatile about understanding dates (almost too versatile)
  • Next by Date: Re: parsing Unix date
  • Previous by thread: Re: AppleScript is tremendously versatile about understanding dates (almost too versatile)
  • Next by thread: Re: dates as text
  • Index(es):
    • Date
    • Thread