Re: reading a file in an applescript.
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