• 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 of question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: date of question (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: date of question
  • Next by Date: Re: date of question
  • Previous by thread: Re: date of question
  • Next by thread: Re: date of question
  • Index(es):
    • Date
    • Thread