• 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: reading a file in an applescript.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reading a file in an applescript.


  • Subject: Re: reading a file in an applescript.
  • From: Christopher Nebel <email@hidden>
  • Date: Fri, 21 Mar 2008 15:30:50 -0700

On Mar 21, 2008, at 1:43 PM, Doug McNutt wrote:

"the", "a", and some other articles are totally ignored by Applescript.

Wrong. "the" is ignored (only as a keyword, mind you, not when it's part of an identifier; it's actually a special kind of comment); nothing else is. "a" isn't even a keyword.


so. . .
set theTextFile to (theScriptPath & replyTemplateName)
does nothing to define a variable called  "theTextFile"

Wrong. Read it again.

And it's entirely too easy to type the value (English-like) when you mean thevalue (Programming lingo).

This I'll agree with, at least somewhat. I suggest getting in the habit of using the "the" keyword consistently, or using names like "theWhatever", but not both. The syntax coloring can help you spot mistakes.



--Chris Nebel AppleScript Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: reading a file in an applescript.
      • From: Doug McNutt <email@hidden>
References: 
 >Re: reading a file in an applescript. (From: Doug Meade <email@hidden>)
 >Re: reading a file in an applescript. (From: Michelle Steiner <email@hidden>)
 >Re: reading a file in an applescript. (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: reading a file in an applescript.
  • Next by Date: Re: reading a file in an applescript.
  • Previous by thread: Re: reading a file in an applescript.
  • Next by thread: Re: reading a file in an applescript.
  • Index(es):
    • Date
    • Thread