Title: Re: Scripting Help needed
On 6/25/01 7:07 PM, "Ken Scott" <[EMAIL PROTECTED]> wrote:


So far, I am understanding a little bit of what is going on. However, I am confused by trying to build a date from a string. If I stick in a literal string, it works. If I build the string and try to construct the date from that, I get the following error message:

Microsoft Entourage got an error: Can't get date "1/1/1999".


Yes. That happens with dates (except the osax ‘current date’) inside application tell blocks, especially when run by an application.  The solution, in an applet, is to write:

    tell me to set whatever to date “1/1/1999”


Then the applet itself does the date calculation, and all is usually OK. Sometimes, however, in a script run by an application (e.g. When Entourage is running it from the script menu, or your script editor is running it), you might have to script

     tell AppleScript to set whatever to date “1/1/1999”

That always works.


--
Paul Berkowitz

Reply via email to