• 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: date 0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date 0


  • Subject: Re: date 0
  • From: "Marc K. Myers" <email@hidden>
  • Date: Mon, 11 Feb 2002 00:00:48 -0500
  • Organization: [very little]

> Subject: Re: date 0
> Date: Sun, 10 Feb 2002 08:51:26 -0700
> From: Michelle Steiner <email@hidden>
> To: "applescript-users" <email@hidden>
>
> On 2/10/02 12:51 AM, Marc K. Myers <email@hidden> wrote:
>
> >Other people have reported that their systems can't resolve "date 0". I
> >pulled all scripting additions out of their folder, fired up Script
> >Editor and entered this script:
> >
> >set numDate to 0
> >date numDate
> >
> >The result was:
> >
> >--> date "Friday, January 1, 1904 12:00:00 AM"
>
> Two things.
>
> First,
>
> Set numDate to 0 does not work for me, but Set numDate to "0" does work.
> This indicates to me that you have an OSAX that's coercing the number to
> a string.
>
> Secondly,
>
> Instead of getting Jan 1, 1904, I get midnight of the current date. I
> don't know why this difference exists.

Nigel and Paul informed me that merely taking the scripting additions
out of their folder didn't disable them. I never knew that! When I
took them out and did a restart I found that "date 0" wouldn't compile
any more. I added the Osaxen back one at a time, attempting to compile
after each one. When I put Akua Sweets back in the Scripting Additions
folder "date 0" was able to compile. There must be a coercion in Akua
Sweets that makes the difference.

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[2/10/02 11:59:35 PM]
_______________________________________________
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.

  • Prev by Date: Re: Outlook Express: HTML to Text
  • Next by Date: Re: Create a folder with today's date as the folder name
  • Previous by thread: Re: date 0
  • Next by thread: Re: date 0
  • Index(es):
    • Date
    • Thread