Re: date of question
Re: date of question
- Subject: Re: date of question
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 13 Oct 2005 15:48:58 -0400
On 10/13/05,
Robert Poland <
email@hidden> wrote:
But no one noticed that I had tried "date of" rather that "date" as
implied by the subject line.
The actual code you included in your message didn't have the "date of",
so I didn't know that your subject line was meant to be interpreted as
code.
The syntax "date of X" asks for the valuie of the "date"
attribute of object X. In this case, X is a string, and strings
do not, in general, have any attribute named "date". It would be
awfully limiting if the only way to convert a string to an object of
type Foo was for every string to have a separate attribute "foo" for
every possible such type...
So much for English like language.
The key part of the description "English-like" is the "-like".
AppleScript is very distinctly not English. The English-likeness
is there to make it *easier* to learn, if you happen to already know
English. But you do still have to learn it! You need
to approach the problem of learning AppleScript in exactly the same way
you would if it *weren't* Englishlike: it's a foreign language you have
to learn. Some of the vocabulary will be easy to remember because
it's the same as English - in that way, it's kind of like learning
Dutch or German. But you still have to put that vocabulary
together using the new language's syntax rules, not those of
English. You can't just speak English, only more loudly, and
expect a native (the AppleScript interpreter) to understand you.
--
Mark J. Reed <
email@hidden>
_______________________________________________
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