Re: date arithmetic weirdness
Re: date arithmetic weirdness
- Subject: Re: date arithmetic weirdness
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 31 Mar 2002 20:49:42 -0800
On 3/31/02 7:49 PM, "Michelle Steiner" <email@hidden> wrote:
>
On Sunday, March 31, 2002, at 07:58 PM, Paul Berkowitz wrote:
>
>
> Try throwing in a few 'get' s.
>
>
Yep. "get date b" works. But why would that one use require it, and
>
none of the others do?
I think because it comes after an arithmetic operator. 'date a' follows 'set
foo to ', which is acceptable, but the ' - ' sign requires that the term
after it be already evaluated, either as a variable, a literal date, or an
explicit 'get', which enforces the evaluation. The next line 'set bar to
(date c) - foo' is OK because foo is a variable. Setting a variable to a
date is the same as getting it - that's the other way to do evaluate it.
It's just the same in some applications such as Outlook Express's 'current
messages' and certain other application properties. Does Emailer not have
any of these?
--
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.