Re: Fun with dates...
Re: Fun with dates...
- Subject: Re: Fun with dates...
- From: Neil Faiman <email@hidden>
- Date: Tue, 21 Jun 2005 20:56:30 -0400
On Jun 19, 2005, at 9:18 PM, David Crowe wrote:
Paul;
Thanks for explanation of why:
set ABSynchTime to "6/17/2005 23:56:45" as date
fails, but:
set ABSynchTime to date "6/17/2005 23:56:45"
succeeds (the coercion via 'as date' has never been implemented).
It's this kind of thing that makes AppleScript programming so
difficult for a newbie. Without this group to answer questions like
this (especially when I don't have a workaround) I don't know what
I'd do!
One of the things that can be confusing about AppleScript is that
things that look almost the same (indeed, things that really would be
synonymous in English) may have totally different meanings. For
example, the difference between "paragraphs 2 through 5" and "text
from paragraph 2 to paragraph 5".
In this case, "date <string>" is a specific AppleScript language
construct denoting the date which can be represented by the
particular string. "<string> as date", on the other hand, is a just
an instance of the AppleScript's general coercion syntax, and as Paul
has pointed out, whether any particular coercion will or won't work
is something of a coin-toss.
Regards,
Neil Faiman
_______________________________________________
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