Applescript (15)

1 Name: #!/usr/bin/anonymous : 2006-03-05 07:28 ID:xrLD1Ox8 This thread was merged from the former /code/ board. You can view the archive here.

Somebody else use it?

I really hate the language itself. It's probably the only language where it is easier to read scripts than to write them!

Applescript uses a natural language metaphor, which is a fancy way of saying that all the syntax is made up of arbitrary keywords, some of them actually being documented.

Here's an example of code lifted from the wp page about AS:

set pix to 72
set answer to text returned of (display dialog "Enter in the number of inches" default answer "1")
display dialog answer & "in = " & (answer * pix) & "px"

It is too hard for the non-programmer, because I really can't see how this way of using natural language could make coding easier, and it is also hard for normal coders, who are always trying to find out which magic keyword is used to abstract what they'd like to work with. It just is easier to read.

That's really too bad, because applescripts actually are quite powerful - you can automate a lot of nice things in OS X using them - I made a lot of scripts for my own use, I really like having the script menu and folder actions - but the language itself is too painful to use.

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification: