Re: What makes AppleScript difficult
Re: What makes AppleScript difficult
- Subject: Re: What makes AppleScript difficult
- From: Michelle Steiner <email@hidden>
- Date: Thu, 6 Dec 2007 10:46:30 -0700
On Dec 5, 2007, at 9:22 PM, Doug McNutt wrote:
f you come from a programming background you know about
cat flie_that_exists > file_that_doesn\'t_exist
Er no. When I programmed in Pascal or C on a Mac, I never encountered
that syntax.
It works fine and simply creates the file. It has a name that you
just gave it and doesn't complain that you didn't create it first.
It's an example of why AppleScript is so hard for experienced
programmers to understand.
What is so hard to understand that in Applescript you have to
explicitly create something before you can reference it?
Pascal is hard to understand for people with a BASIC background
because in BASIC you do not have to define the type of a variable
before you can assign a value to it, whereas in BASIC, the type is
automatically defined when you assign a value to the variable. Also
the variable's type is immutable, but in BASIC, you can change the
type simply by reassigning a variable to it.
--
The reason that so few people think outside the box is that all the
pay and benefits are inside the box.
_______________________________________________
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