• 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: What makes AppleScript difficult
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: What makes AppleScript difficult (From: "Gary (Lists)" <email@hidden>)
 >Re: What makes AppleScript difficult (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: Problem with reading 4-byte floats from file on Intel
  • Next by Date: Re: Smile (Was: AppleScript4programmers)
  • Previous by thread: Re: What makes AppleScript difficult
  • Next by thread: Re: What makes AppleScript difficult
  • Index(es):
    • Date
    • Thread