Slashdot Mirror


Teach Yourself AppleScript in 24 Hours

honestpuck contributes this review of Sams Publishing's Teach Yourself AppleScript in 24 Hours, writing "The market for books on AppleScript cannot be a large one, since there never seem to be many volumes in it; usually only one at a time is up to date and worth the money. Now that O'Reilly's AppleScript In A Nutshell is showing its age (and wasn't that great in the first place), and Danny Goodman's book is even older, I was pleased to hear that this volume had come along." Read on for honestpucks' mixed impressions of the book. Teach Yourself AppleScript in 24 Hours author Jesse Feiler pages 432 publisher Sams Publishing rating 7 reviewer Tony Williams ISBN 0672325187 summary Not a bad introduction to AppleScript but leaves off far too early.

Teach Yourself Applescript in 24 Hours (TYA) from Sams Publishing is certainly up to date: it covers Applescript under OS 10.2 and the use of AppleScript Studio to build GUI applications using the language. That's its strength. The book's first weakness, though, is that it starts too far down the learning curve in my opinion. The first few chapters of TYA could be read by someone almost totally new to the Macintosh -- they cover such basics as running the scripts installed with the OS and getting new scripts from Apple and installing them. At the same time, they introduce basic AppleScript programming terminology not really required for these sorts of tasks such as suites, classes and commands. This material would have best waited a few chapters. It is not really until 'Hour 6', most of the way through the first part of the book, that it really sorts itself out and gets down to really teaching you AppleScript.

The Basics The book is divided into four parts: 'Getting Started With AppleScript,' which covers using scripts and basic programming concepts; 'Writing Scripts With Script Editor,' which takes you through using the Script Editor, details AppleScript syntax and how to script the Finder and various applications and using AppleScript Dictionaries; 'Working With AppleScript Studio,' which covers building AppleScript-based GUI applications using Project Builder and Interface Builder all the way through to complex applications that can store and retrieve documents; and a final section 'Advanced Scripting,' which covers Script Objects, scripting across a network (including SOAP and XML-RPC), and integrating scripts with the terminal and cron.

Each section is then divided up into chapters designed to be worked through in less than an hour ,with a small number of short exercises at the end. I found that most chapters took me about half an hour before I reached the exercises, which then took ten to fifteen minutes.

As you can see, almost everything you could ask for is touched on in this book. Once over the introductory chapters, I found the book to be well laid out, well structured and well written. I particularly liked Part III on AppleScript Studio; it started easily and worked up to quite an advanced little application explaining everything well along the way.

The Bad There are some things missing, however. Debugging is hardly mentioned (3/4 of one lesson), and debugging is not exactly trivial in AppleScript. I also found no mention of my pet demon with AppleScript; its incredibly strong typing and problems with having data in the wrong type; this is a classic problem with files and file names. In reality, this book teaches you the language without really getting down to teach you how to program in the language. A fine distinction, I know, but after just reading Learning Perl Objects, References & Modules, I found TYA to be light on real examples and real world code. Even the best section, the one on AppleScript Studio, didn't touch on many things you will need to know.

Sams have a page devoted to the book at the Sams web site, but frankly the URL is so long and cumbersome I don't dare risk putting it in a post. Go to the site and type 'AppleScript' in the search box. It has the table of contents and a sample chapter and some of the code from the book. The sample chapter is the third chapter 'Running The Scripts You Already Have' and really doesn't give you a good feel for how the book teaches you AppleScript programming. The page to download the code examples says "All the code developed for the book in one convenient download," but in fact all you get are the AppleScript Studio projects and source from four of the chapters. Oh, and the introduction says "There are even a few goodies on the web site that aren't in the book" -- they sure must be good as I couldn't find them.

In conclusion, I think this book starts too far down the learning curve and leaves off too early, with not enough detail. It seems a shame, what we have here is well laid out and well written, I wanted it to be better after I had finished. This book might suit someone absolutely new to the Mac who wanted to learn enough AppleScript to perform a few basic operations, for everyone else it'll be better to wait till October when AppleScript 1-2-3 will be out from Peachpit and AppleScript: The Definitive Guide will be out from O'Reilly, and we might have a better option. If you absolutely need to get some help with AppleScript Studio then borrow someone else's copy or find one second hand.

You can purchase Teach Yourself AppleScript in 24 Hours from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

202 comments

  1. I've got a better book for you. by SpanishInquisition · · Score: 5, Funny

    Forget VBscript in 5 minutes.

    --
    Je t'aime Stéphanie
    1. Re:I've got a better book for you. by borkus · · Score: 2, Funny

      That's a lot of bourbon to drink in 5 minutes.

    2. Re:I've got a better book for you. by Anonymous Coward · · Score: 0, Funny

      I would much rather have the book, "How To Get Rid Of Mac Zealots in 5 Minutes".

    3. Re:I've got a better book for you. by El_Ge_Ex · · Score: 0

      PLEASE! Where can I find it?

      -B

    4. Re:I've got a better book for you. by Bert+Altenburg · · Score: 5, Informative

      Hi,

      For a free starter on AppleScript, way more up to date that the above book, check out http://fischer-bayern.de/applescript/html/ebook.ht ml where you can find AppleScript for Absolute Starters (pdf). It teaches the basics of AppleScript with the much improved Script Editor currently available in beta.

      The web-page is in German, but if you look in the table, you'll find the English version of the booklet.

      Bert

      --
      PC manufacturers are guilty of perpetuating monopoly abuse by M$ until they include a partition with Linux pre-installed
    5. Re:I've got a better book for you. by texaport · · Score: 1
      "LEARN fill-in-the-blank IN 21 DAYS"
      seems long, so just add three chapters and it's
      "LEARN fill-in-the-blank IN 24 HOURS"

  2. $7.50 cheaper! by Anonymous Coward · · Score: 0, Informative
    1. Re:$7.50 cheaper! by SoCalChris · · Score: 2, Insightful

      And Bookpool.com has it $1 cheaper than Amazon.

      http://www.bookpool.com/.x/dszq2mdc4i/sm/067232518 7

      On a side note, why was the parent modded as a troll? Anything to save me $7.50 should be modded as informative.

    2. Re:$7.50 cheaper! by Anonymous Coward · · Score: 0

      Save 7.50 and support broken patent system? Hmm! I'll consider the $7.50 part of the cost of progress!

    3. Re:$7.50 cheaper! by Anonymous Coward · · Score: 0

      We're not all as rich as you...

  3. Missing material by mao+che+minh · · Score: 0, Flamebait

    I really wish that the editors would select more stories about Macintosh computer systems and their associated technologies. I haven't heard about that topic in a while. Thank you.

  4. Is it Mac Day?? by jimson · · Score: 4, Insightful

    Along with Mars day or what?

    1. Re:Is it Mac Day?? by FileNotFound · · Score: 1

      Mars looks a great deal like a red apple.

      Since slashdot has no "Mars" icon as such, the Apple logo will have to do...

      --
      In Soviet Russia, the television watches YOU!
    2. Re:Is it Mac Day?? by Anonymous Coward · · Score: 0

      ... which is why I've always suspected that Mac users are from Mars.

    3. Re:Is it Mac Day?? by Anonymous Coward · · Score: 0

      So youre saying all males use Macs and all females use Windows?

    4. Re:Is it Mac Day?? by Anonymous Coward · · Score: 0

      Mac users are from Venus.

    5. Re:Is it Mac Day?? by Fly+Ricky+-+The+Wine · · Score: 1

      It's always Mac day!!

      Sorry, I'm a designer. :)

    6. Re:Is it Mac Day?? by GoofyBoy · · Score: 1


      Its a nice change of pace from our regular diet of "Hate M$" day or "SCO is evil" day or even "Dry-hump Linux/OpenSource" days.

      --
      The surprise isn't how often we make bad choices; the surprise is how seldom they defeat us.
  5. Resources by daeley · · Score: 4, Informative

    For those with AppleScript Studio and the Developers Tools installed, head on over to this path for all kinds of cool info: /Developer/Documentation/CoreTechnologies/AppleScr iptStudio/

    There's also online resources, naturally: Apple's AppleScript site, AppleScript Studio Essentials docs, the AppleScript Studio mailing list, and lots of other stuff.

    --
    I watched C-beams glitter in the dark near the Tannhauser gate.
  6. This belongs on apple.slashdot.org by Anonymous Coward · · Score: 4, Funny

    Now post another kde vs gnome flamewar.

  7. ObSimpsonQuote and ObBookReviewComplaint by mcmonkey · · Score: 1

    I give this book my lowest rating ever...seven thumbs up!

  8. Get it from just 12.49! by Anonymous Coward · · Score: 3, Informative
  9. What the fuck is this? by Anonymous Coward · · Score: 0, Funny

    Apple day?

  10. Somewhat off topic but... by davidsheckler · · Score: 3, Insightful

    Why applescript? Why not a scripting language
    that does all that applescript does and is
    also crossplatform? This is not meant to bash
    applescript, which is a fine scripting language.
    It's just that applescript won't run on Win32,
    *NIX, VAX ... Other scripting languages will
    (python, perl and javascript even).

    -d

    1. Re:Somewhat off topic but... by Anonymous Coward · · Score: 0

      Portability is all well and good but I think you miss one of the major points of AppleScript, the high-level integration with OS9/X applications, which most scripting languages don't support and even if they did, would be of little use on non-Mac platforms.

    2. Re:Somewhat off topic but... by Jon+Abbott · · Score: 1

      I'm right there with you... Personally I have had a hard time finding even the motivation to learn Applescript, when I already have bash and perl at my side. I guess I'm just getting lazy...

    3. Re:Somewhat off topic but... by himself · · Score: 2, Insightful

      >
      > Why not a scripting language that does all that applescript does
      > and is also crossplatform?
      >
      AppleScript can do stuff at the OS level that cross-platform scripting languages can't -- that's what the trade-off inherent in being "cross-platform" means.
      Now, if there was, say, a Perl module that handled calls into an application's scripting dictionary, like AS has, I'd be mightily impressed.
      I've never really written AppleScripts, but when I got a script from someone else, its power always surprised me. Why, it's almost like the OS & applications are written with the intent of being open and scriptable!

    4. Re:Somewhat off topic but... by davidsheckler · · Score: 3, Informative

      Okay, python Mac extensions:

      mac (Mac)
      macerrors (Mac)
      macfs (Mac)
      MacOS (Mac)
      macostools (Mac)
      macpath
      macresource (Mac)

      Carbon interface for GUI:

      Carbon.AE (Mac)
      Carbon.AH (Mac)
      Carbon.App (Mac)
      Carbon.CaronEvt (Mac)
      Carbon.CF (Mac)
      Carbon.CG (Mac)
      Carbon.Cm (Mac)
      Carbon.Ctl (Mac)
      Carbon.Dlg (Mac)
      Carbon.Evt (Mac)
      Carbon.Fm (Mac)
      Carbon.Folder (Mac)
      Carbon.Help (Mac)
      Carbon.List (Mac)
      Carbon.Menu (Mac)
      Carbon.Mlte (Mac)
      Carbon.Qd (Mac)
      Carbon.Qdoffs (Mac)
      Carbon.Qt (Mac)
      Carbon.Res (Mac)
      Carbon.Scrap (Mac)
      Carbon.Snd (Mac)
      Carbon.TE (Mac)
      Carbon.Win (Mac)

      I'm sure perl has similar extentions.

    5. Re:Somewhat off topic but... by mantera · · Score: 1

      you're so absolutely right; coming from a guy who once considered, albeit for only briefly, learning applescript 'cos i just had a new mac. Eventually i decided to remain/go with open source languages such as python/perl/ruby/tcl, but only 'cos my interest was scripting general mini-apps. that said though, applescript on apple is interesting, if your intention is to keep your mac for a considerably long period for it to be worth is. I don't think the comparison with perl/python/js is a fair one 'cos applescript seemed to have a certain application, it was more like a macro language for the mac, if i remember well, which i'm almost sure it was more capable for that role for which it was made than general-purpose cross-platform OSS scripting languages. Since i didn't intend to keep that mac, it wasn't worth learning for me.

    6. Re:Somewhat off topic but... by taybin · · Score: 4, Informative

      Why applescript? That's because mac applications can include "dictionaries" of commands that applescript can use. Try scripting photoshop and filemaker in python or some other language.

      That's applescript's true power really. If it was just used as a standalone language without outside application support, it would be fairly weak.

    7. Re:Somewhat off topic but... by m0nkyman · · Score: 1

      The way that Applescript works with the Apple GUI is what makes it interesting to me. I tend to use bash scripts for most things, but Applescript is great for doing "Point and Click" type operations which bash isn't so good at.

      my 2 worth

      --
      ~ a low user id is no indication I have a clue what I'm talking about.
    8. Re:Somewhat off topic but... by kennylives · · Score: 5, Interesting
      2 things come to mind...

      First is that Applescript is great for automating Applescript-aware applications (including Finder) without having to either brute-force it, or write whatever function you're after yourself. For instance (I'm working from memory, and it's been a while since I've worked with this stuff, so it's probably not syntactically correct):


      tell "itunes"
      play "Macintosh HD:MP3 Collection:some tune.mp3"
      end tell
      ...and AppleScript takes care of all of the fiddly details of how to communicate with the application.

      Second, this can be done remotely, assuming that AS-remoting is enabled at the target. Which would get really tricky to do with Perl or Python or even Expect.

      IIRC, it would just be a matter of changing the tell to something like tell "itunes" on "Kenny's Macintosh". The rest of the script would remain the same. But then, debugging is a real nightmare...

      --

      Where the value of X-Mailer: is the true measure of a man...

    9. Re:Somewhat off topic but... by follower-fillet · · Score: 5, Informative

      > Why applescript? That's because mac applications can include "dictionaries" of commands that applescript can use.

      Actually:

      "The Open Scripting Architecture (OSA) is an API that provides a standard mechanism for creating scriptable applications and for writing scripting components to implement scripting languages. The AppleScript component implements AppleScript, the standard scripting language defined by Apple, but developers can also write scripting components for additional scripting languages."

      -- <http://developer.apple.com/documentation/Carbon/R eference/Open_Scripti_Architecture/>

      So you're not restricted to using AppleScript to get those benefits.

      Python, for example, is able to both send and receive Apple Events.

    10. Re:Somewhat off topic but... by Anonymous Coward · · Score: 0

      >>tell "itunes"
      >>play "Macintosh HD:MP3 Collection:some tune.mp3"
      >>end tell

      #!/usr/bin/perl

      system( "itunes" . " " . "Macintosh HD:MP3 Collection:2112.mp3" );

      exit; :)

    11. Re:Somewhat off topic but... by axxackall · · Score: 1
      but developers can also write scripting components for additional scripting languages.

      That reminds me WHS in Windoes. But the history shows that script programmers on Windows prefer Python and Tcl without WHS.

      --

      Less is more !
    12. Re:Somewhat off topic but... by WatertonMan · · Score: 2, Informative
      Applescript is an application scripting language. I sure there is YACC/LEX code floating around for the language. So in theory it wouldn't be that hard to port.

      Python, Perl and to a lesser extent Javascript aren't designed for this. (I say lesser extent Javascript, since there actually is a version of Javascript that compiles to the same format Applescript uses and works in the same way)

      Javascript OSA

      One must also point out that there are glue modules for Perl that allow it to do most Applescripting.

      Applescript Module
      Applescript Glue for Perl

      I agree that in general one would be better off using an other scripting language. But Applescript is useful -- especially for small tasks. (I think the majority of my scripts are less than 25 lines long)

      I've not tried using the more robust OSA features in Python. Ususally I just call applescripts. I plan on doing more of this during the upcoming weeks.

      Python OSA Applescript

      Unfortunately as I alluded in my other post, Applescript Studio doesn't really support OSA languages other than Applescript. (OSA is from a programmer's perspective something like the VM for Java - it lets you use other languages)

      I 100% agree that having a good general scripting book for OSX would be a great idea. It would have to be very practical. Here's hoping.

    13. Re:Somewhat off topic but... by Phrogz · · Score: 2, Insightful
      So you're not restricted to using AppleScript to get those benefits.

      And in fact, the OSA is more than a theoretical possibility. There's a free Javascript OSA module available...use Script Editor to control your mac using Javascript!

    14. Re:Somewhat off topic but... by Anonymous Coward · · Score: 0

      why do you put all the arguments in the first argument to system()? it goes through to the shell unescaped.

    15. Re:Somewhat off topic but... by hachete · · Score: 1

      Some of use Applescript for Real World Situations - like running build scripts and installing stuff. Some of us would like more a fart's chance in a thunderstorm of being able to *program* AppleScript rather than the current *program-by-accident* that is all I seem to do because I can't get hold of a decent resource for this *8***000))"*$ language. Grr.

      h.

      --
      Patriotism is a virtue of the vicious
    16. Re:Somewhat off topic but... by Anonymous Coward · · Score: 0

      Cool. Is there anything similar for perl? I think I saw something about this a while back, so I guess I'll go look. I hacked together an AppleScript a while back to extract some information out of iTunes (mostly for my own amusement) but it would have been far easier in perl, as I'm much more familiar with it. The AppleScript was a lot of trial and error since I didn't take the time to properly learn it.

      Apple Events in perl would be even better than when gimp-perl came out. I wasn't about to learn Scheme, but as soon as perl supported it, I've been doing all kinds of useful stuff by scripting Gimp.

    17. Re:Somewhat off topic but... by WatertonMan · · Score: 1

      Actually the syntax of Applescript is its greatest weakness. It is one of those "incredibly easy to read, a pain to write" languages. This was less of an issue back when most applications were recordable. You'd hit record and it would generate an Applescript to do what you just did. Then you could modify it. Right now though only a small handful of Applications support recordability and none of them are the main productivity applications. So it is sadly of little use.

    18. Re:Somewhat off topic but... by hyperstation · · Score: 1

      no, there's nothing similar for perl. you'll just have to use python, which works _properly_...

    19. Re:Somewhat off topic but... by ProfKyne · · Score: 1

      Because the AppleScript implementation on MacOSX gives you programmatic access to Apple Events. Those don't exist on any other platform. Apple Events let one application communicate directly to an API established by another application. In other words, AppleScript is less a scripting language (like Perl/Python/etc) and more a way of executing a series of Apple Events, with limited additional scripting capability.

      Yes, it's a very niche market, but folks like Pudge have been working on ways to communicate via Apple Events from Perl (and presumably other languages).

      --
      "First you gotta do the truffle shuffle."
    20. Re:Somewhat off topic but... by el-spectre · · Score: 1

      Eh, there's nothing wrong with being good at your niche. While it's handy to have cross platform languages, sometimes there's no need to do so. Actionscript is great for Flash, but would be stupid for system admin, just because it wasn't designed for it.

      --
      "Faith: Belief without evidence in what is told by one who speaks without knowledge, of things without parallel." - A.B.
    21. Re:Somewhat off topic but... by WatertonMan · · Score: 1
      Just to add to the above, if you use MacPython, they you do get more Applescript-like functionality. i.e. for controlling other Applications. There is some confusion on this since Apple supports the standard Python. MacPython, while using the same language, is technically a different beast. A lot of the language extensions work in MacPython but not the command line Python (and not the variant Python that you may have installed with Fink). Confusing? Yes. But MacPython includes a nice IDE so is useful for many reasons anyway.

      MacPython

    22. Re:Somewhat off topic but... by chigaze · · Score: 2, Informative

      Why Applescript? Because sometimes you are scripting things that are platform specific.

      For example I just finished up part of a Filemaker solution that uses PDF Services in OS X and Applescript to generate, name, and move to a destination folder PDFs from Filemaker records. Picking up the necessary Applescript knowledge to do this took extremely little time compared to what it would have taken me to learn PERL, for example.

    23. Re:Somewhat off topic but... by Anonymous Coward · · Score: 0

      Oh, so it's like REXX then?

    24. Re:Somewhat off topic but... by follower-fillet · · Score: 1

      One difference is that (I believe) OSA has been around longer than WHS, and less of an afterthought/add-on.

      As far as I understand it OSA is like WHS + COM (or whatever it is these days). In fact you can even send AppleEvents over networks (if you enable it).

      So, Python + win32 COM bindings is somewhat equivalent to Python + AppleEvent/OSA bindings.

      I think OSA/AE is more integrated into the environment with most applications at least supporting the "Standard Suite" which includes opening & closing documents and quiting the application.

    25. Re:Somewhat off topic but... by WatertonMan · · Score: 1
      Not really. There actually was a Mac REXX port way back in the System 7.5 days. I remember playing around with it. There's a version for OSX as well:

      Regina Rexx for OSX

      However Applescript is different. REXX is a more general scripting language that has, over time, become more like Javascript or the like, but which has a Fortan/Basic like syntax. (At least in my opinion. Others may disagree). Applescript makes use of dictionaries each application provides which provides objects and actions on objects. So it is intrinsically object oriented even if its syntax doesn't make good use of it. (The language syntax itself sucks, IMO, but the idea is so fantastic that it makes up for the language's limitations)

      So iTunes has selections, playlists and other objects each with various attributes. It has actions you can do with and to these objects. You ought to google for some examples. Until you see what you can do with it, especially when combining applications, you just don't understand. The simplest way to think about it is the old idea of Unix of small programs that work together. Now conceive of all applications defining objects which can be utilized with that kind of mindset. All applications from word processors to graphics programs to spreadsheets to MP3 players to calendars. It really is quite amazing.

      The only limitation is that a few applications are half-hearted in support. (Mainly a few Adobe Apps and Apple's own mail program) Apple also hasn't evangelized it quite enough.

    26. Re:Somewhat off topic but... by follower-fillet · · Score: 1

      > Try scripting photoshop and filemaker in python or some other language.

      Just in case you're interested, a quick Google (for Python and Photoshop or Filemaker) brings up:

      http://opensource.adobe.com/ (Stuff seems to be Windows only.)

      Plus references to using Python + AppleEvents including:

      http://www.letterror.com/code/fmpro/
      http://hom epage.mac.com/vng1/FileSharing14.html

    27. Re:Somewhat off topic but... by radio4fan · · Score: 1

      Try scripting photoshop and filemaker in python or some other language.


      Indeed. Why don't you try scripting Photoshop in Applescript?
      Photoshop doesn't support Applescript, except to open documents and let you fire off Photoshop actions. You can't get any data in or out through Applescript. You can't say (for example) if the image is wider than it is tall do this, otherwise do that.
    28. Re:Somewhat off topic but... by taybin · · Score: 1

      Right you are. I was thinking of GraphicConverter, which exports a large amount of functionality to AppleScript.

  11. The problem with this and all other 'in 24 hours'. by Kenja · · Score: 4, Funny

    The problem with this and all other 'in 24 hours' is that they don't come with the 24 pack of red bull needed to keep reading the bastard for a full day. And of course in the morning you'll have forgoten everything but the title of the book.

    --

    "Have you ever thought about just turning off the TV, sitting down with your kids, and hitting them?"
  12. Common Sense by error502 · · Score: 1

    I though it was common sense to stay away from all "Learn [Language] in 24 Hours" books.

    1. Re:Common Sense by johnnyb · · Score: 1

      It depends. Some of the authors are actually good, and the just do the "24 hours" thing for name recognition. Most, however, really do suck.

    2. Re:Common Sense by Phroggy · · Score: 1

      I though it was common sense to stay away from all "Learn [Language] in 24 Hours" books.

      A friend sent me a copy of Learn PHP4 in 24 Hours; I've found it to be quite good! I'm a Perl hacker, not a newbie, so most of the syntax is identical; I just have to learn about new things like... variables are scoped to the function, not to the block; arrays really work like hashes and don't always have consecutive numbered elements; elseif is spelled with an e in the middle.

      However, I have noticed a surprising number of typos - whoever proofread this book was definitely asleep at the wheel, although a later edition may address this. It seemed a little strange to me that OOP, a fairly advanced topic, would be discussed as early as chapter 8, while strings, the basic building-block of dynamic web content, aren't discussed in detail until chapter 17. So it's far from perfect, and an O'Reilly book might be better, but this does suit my needs for the moment.

      Obviously if I decide to do any serious programming in PHP (I know somebody who's writing an IRC bot in PHP, which I find disturbing), I'd need a bigger and better book, but I don't have time to learn everything there is to know about PHP at the moment.

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
  13. Has anyone by hackstraw · · Score: 1

    ever learned X in 24 hours like the book title says?

    1. Re:Has anyone by error502 · · Score: 2, Interesting

      Yes. Just not with any of the "...in 24 Hours" books.

    2. Re:Has anyone by HaloZero · · Score: 1

      Yeah.

      'What not to do...'

      --
      Informatus Technologicus
    3. Re:Has anyone by Jucius+Maximus · · Score: 1
      "Has anyone ever learned X in 24 hours like the book title says?"

      I think it's more about being able to put another bullet point on your resume before you send it with that job application that requires X skill as opposed to truly learning the language in depth. Any experienced coder can learn the basics of a programming language in under 24h but to actually competently code a large project, it takes a lot more practice an in depth study.

    4. Re:Has anyone by Anonymous Coward · · Score: 0

      WARNING:

      Above post contains a goatse link (in the header).

    5. Re:Has anyone by Anonymous Coward · · Score: 0
      Ah! So we finally found the goatse guy!

      Um... ew.

    6. Re:Has anyone by tchristney · · Score: 1

      Yes, I learned "Hello World!" in 24 languages in 24 hours. YMMV.

    7. Re:Has anyone by sg_oneill · · Score: 1

      Any experienced coder can learn the basics of a programming language in under 24h but to actually competently code a large project, it takes a lot more practice an in depth study

      I presume you havent played around with python yet? Seriously dude. Thats a 24h mastery cycle. Perhaps a little longer to find all the best fun in the libs.

      --
      Excuse the Unicode crap in my posts. That's an apostrophe, and slashdot is busted.
  14. Applescript Additions by Squidgee · · Score: 4, Informative
    Apple's beta of GUI Scripting allows for Applescript to click menus and buttons like a person; a fun addition you should check out if you're into Applescript.

    It adds a whole new dimension of customizability to Mac OS X; now you can script your Mac to the same level you can script Linux/*BSD/Unix. =)

    1. Re:Applescript Additions by Squidgee · · Score: 2, Informative

      Sorry, the link should be: this. Slight typo; sorry.

    2. Re:Applescript Additions by Squidgee · · Score: 1
      Oh dammit, it's caps-sensitive.

      This is the right link I swear. Sorry! =)

    3. Re:Applescript Additions by Anonymous Coward · · Score: 0

      New to the internet are we? URL's have been case sensitive since the beginning of time.

    4. Re:Applescript Additions by Squidgee · · Score: 1
      No, no they haven't been. Case in point:

      Apple.slashdot.org
      ApPLe.slashdot.org
      apple.slashdot.org

    5. Re:Applescript Additions by ubrgeek · · Score: 1

      New to computers? It depends on what server platform they're running on and which options are activated for that platform.

      --
      Bark less. Wag more.
    6. Re:Applescript Additions by johnnyb · · Score: 1

      Domain names are not case sensitive, but the rest of the URL is if it is being served by a UNIX machine (generally speaking, of course - I can't think of any statement that is generally true of ALL UNIX machines).

    7. Re:Applescript Additions by Bishop923 · · Score: 1

      This will work even better.

    8. Re:Applescript Additions by Trejkaz · · Score: 0

      Or I guess you could just install Linux, and using that, script your Mac to the same level you can script Linux.

      --
      Karma: It's all a bunch of tree-huggin' hippy crap!
    9. Re:Applescript Additions by pHDNgell · · Score: 1

      It adds a whole new dimension of customizability to Mac OS X; now you can script your Mac to the same level you can script Linux/*BSD/Unix. =)

      I'm not sure I get what you mean. OS X ships with python, bourne shell, perl, tcl, and who knows what else (oh, and applescript). I would hardly say that the GUI scripting catches up to what you can do in any other UNIX since:

      a) this *is* any other UNIX
      b) I've not seen anything like GUI scripting on any other UNIX.

      Scripting a GUI application is a very unpleasant thing to have to do, but a nice thing to be able to do if it's your only option.

      --
      -- The world is watching America, and America is watching TV.
  15. Re:The problem with this and all other 'in 24 hour by Schreckgestalt · · Score: 1

    Heh, you must be european. Or is there Red Bull in Capitalist America?

  16. What is it good for? by iCat · · Score: 1

    I've owned Macs for a while and I've dabbled with Applescript for maybe 10 minutes at a stretch every couple of years or so. Really, is it that useful? Strikes me it's great in theory, but like Speech recognition it doesn't deliver... How many times a day can you get a kick out of asking your Mac 'What time is it?'

    1. Re:What is it good for? by applef00 · · Score: 1

      I wrote a semi-automated (as in, easy enough for for high school teachers to use) network-based hard drive image restore system using AppleScript. It booted off a CD, then loaded the image from a network server. Then, after rebooting, it asked a series of questions that properly set the computer's network name, IP address, etc. (Yes, I know there are tools to do all of this automatically. For reasons I'm not going to go into right now [suffice it to say that it was at a school district] they were all unacceptable.) So I'd say, yes it is that useful. You just have to be willing to commit to learning it -- just like any other scripting language.

    2. Re:What is it good for? by Icaruso · · Score: 1

      Hi,
      Well, for starters, you can automate any repetitive task or workflow in programs that support AppleScript (for example, PhotoShop, Illustrator, BBEdit, FileMaker Pro, Quark, etc.), have said apps interact with one another passing information back and forth, etc. AppleScript is pretty much a prime reason why the publishing industry is so fond of it. Instant automated workflow routines with a click of a button. Also, in relation to speech recognition, you can use Applescript to automate gobs 'o stuff on your Mac by simply placing completed applets inside your speakable items folder. AS is a hidden gem.

    3. Re:What is it good for? by larkost · · Score: 2, Informative

      I actually use AppleScript for a one-off project about every other week. I am maintaining a cluster of FileMaker Pro databases, and there is a lot of data that needs to be massaged. For things that need to touch outside files for their information, and can't be simple imports, I find AppleSctipt very useful.

      I have also worked with AppleScript Studio, and it makes creating small programs on MacOS X very simple. You can even use it to glue nice GUI's onto scripts or other small program segments. I wrote a small program in ObjC and used AppleScript to connect it to iTunes. It would have been possible with other methods (AppleEvents), but much more difficult.

      It is very appropriate to compare it to VBScript in Windows, but from experience it is much more elegant.

    4. Re:What is it good for? by phillymjs · · Score: 1

      Really, is it that useful?

      Yes. It runs a great deal of my house-- and if I wanted to, I could tie the speech recognition stuff in and voice-control the lights and such, but I didn't want to mess with wiring a mic into every room in the house, or have to remember to put on a lavalier mic every time I walk in the door. I instead opted for a couple closeout 3Com Audreys strategically positioned in my house, and wrote a comprehensive web interface.

      I use this to talk to the X10 modules, and this to embed AppleScript right into HTML, so it is executed when a client request is made and the results are embedded in the web page.

      I have pages that practically write themselves that allow me to turn lights on and off with a single click of a button on a web page (or a tap of a finger on Audrey's touchscreen), and the buttons change state so I know the on/off status of a given light or appliance at a glance-- all thanks to AppleScript.

      Most recently I put in an X10-friendly thermostat. In a couple days I got the web interface written. It's 98% done and still being polished, but here is a semi-functional demo version. When the page loads, that's actually the temperature in my house and what the thermostat is set to. Visitors to this page can see the state of the system, and you can adjust the setpoint but not commit the adjustment to the system. The fully-functional stuff is in a passworded directory. :-)

      ~Philly

    5. Re:What is it good for? by zpok · · Score: 1

      If you don't need pipelines, it's not worth your while. If you're in a production environment it can be very powerful.

      I've seen great pipelines in prepress environments done with Applescript.

      --
      I think, therefore I am...I think.
    6. Re:What is it good for? by Anonymous Coward · · Score: 0

      Are you insane? Nah, just terribly and blindingly misinformed, I suppose.

      Do you think 10 minutes every couple of years would give anyone an even remotely accurate view of anything?

      Nope.
      But, to answer your painfully naive question: yes. It's damned useful.

    7. Re:What is it good for? by Anonymous Coward · · Score: 0
      Icaruso writes:
      Well, for starters, you can automate any repetitive task
      Oh I see. You mean I can get AppleScript to jerk me off.
    8. Re:What is it good for? by Pinky · · Score: 1

      I work for a company that does all the logistics work for large conventions and have rather stumbled into the role of writting all Appplescript code. We have several scripts around the company (one for doing releases, one to start clients etc..) and we implemented a great number of features in our in house software by executing small snippits of applescript code from inside our app. So yeah, it's extremely usefull. (Maybe I should say Apple events ar extremely usefull since we tend to do applescripts instead of using Apple Events 'cause it's marginally easier :-) )

    9. Re:What is it good for? by King_TJ · · Score: 1

      There seems to be quite a bit of Applescript used internally by software installers. (If you watch carefully when Photoshop 7 is installing on OS X, you'll see it launch Applescript to do part of its installation.)

      For the "end user", it all depends on how often you perform repetitive tasks. Applescript can be written to launch specific programs, perform specific functions to a given file, save the changes, and cleanly exit the apps when done.

      On the other hand though, I think some people get a bit carried away with their knowledge of Applescript and try to find ways to use it where it's not necessarily the best solution. (EG. I've seen people write Applescript solutions to getting address info out of Apple's Address Book for printing to mailing labels on a printer. Sure, it's doable - but it's faster and more elegant to just write a dedicated application for the purpose.)

    10. Re:What is it good for? by Anonymous Coward · · Score: 0

      I've owned Macs since 1986 and also worked with Applescript irregularly. I also work in speech recognition.

      Both work wonderfully. You just have to know where to apply them. As an earlier poster said, AppleScript is great non-programmers that work with Photoshop. Speech recognition works excellently for those who dictate hundreds of similar types of document every day (radiologists, gynacologists, tax consultants, etc.).

      For general, day-to-day use for John Q. Public, neither AppleScript nor speech recognition are useful.... more just toys.

  17. An Apple is much like Mars by Anonymous Coward · · Score: 0

    You can get to it, it's just that once you get there, there isn't much you can do. ;)

  18. Re:The problem with this and all other 'in 24 hour by jared_hanson · · Score: 1

    I think the problem is that you misread all the titles 'in 24 consecutive hours.'

    --
    -- Fighting mediocrity one bad post at a time.
  19. Teach Yourself Programming in Ten Years by willpost · · Score: 2, Informative

    "either people are in a big rush to learn about computers, or that computers are somehow fabulously easier to learn than anything else. There are no books on how to learn Beethoven, or Quantum Physics, or even Dog Grooming in a few days."

    "Let's analyze what a title like Learn (this_language) in Three Days could mean:"

    "* Learn: In 3 days you won't have time to write several significant programs, and learn from your successes and failures with them. You won't have time to work with an experienced programmer and understand what it is like to live in that environment. In short, you won't have time to learn much. So they can only be talking about a superficial familiarity, not a deep understanding. As Alexander Pope said, a little learning is a dangerous thing."

    "* (this_language): In 3 days you might be able to learn the syntax of (this_language) (if you already knew a similar language), but you couldn't learn much about how to use the syntax. In short, if you were, say, a Basic programmer, you could learn to write programs in the style of Basic using (this_language) syntax, but you couldn't learn what (this_language) is actually good (and bad) for. So what's the point? Alan Perlis once said: "A language that doesn't affect the way you think about programming, is not worth knowing". One possible point is that you have to learn a tiny bit of (this_language) (or more likely, something like Visual Basic or JavaScript) because you need to interface with an existing tool to accomplish a specific task. But then you're not learning how to program; you're learning to accomplish that task."

    "* in Three Days: Unfortunately, this is not enough, as the next section shows."

    http://www.norvig.com/21-days.html

    1. Re:Teach Yourself Programming in Ten Years by stratjakt · · Score: 1

      Programming is not as highly skilled a task as you seem to think it is. Anyone with the desire can learn to do it, and start accomplishing what they need quickly.

      In the case of a scripting language, they probably want to automate sorting their mp3s for their iPod or other trivial tasks, not write a complete 3D imaging application - and even so, it's not programming skills that would help you, but your knowledge of 3D mathematics.

      You are exactly the type of self-absorbed pompous asshat that makes me constantly regret ever getting into computers. You're not as important as you think, anyone could do your job.

      --
      I don't need no instructions to know how to rock!!!!
    2. Re:Teach Yourself Programming in Ten Years by Shadowlion · · Score: 1

      Programming is not as highly skilled a task as you seem to think it is. Anyone with the desire can learn to do it, and start accomplishing what they need quickly. [snip] You're not as important as you think, anyone could do your job.

      The issue is that most people do not have the desire to learn it to do it properly. No doubt I can read a book on dog grooming in 24 hours, and start snipping away the next day, but does that mean I'll do a good job? Know the best techniques? Have anything other than the most basic clue?

      Yes, anybody can program a computer. Writing an efficient, lean, fast program takes more knowledge and education than you can derive from a "Learn Programming in 24 Hours!"-type book.

    3. Re:Teach Yourself Programming in Ten Years by Anonymous Coward · · Score: 0

      Ooh. Props for the use of the word "asshat". A clever combination of profanity and cranial covering which is somehow insulting, yet aloof.

    4. Re:Teach Yourself Programming in Ten Years by kurosawdust · · Score: 1
      "either people are in a big rush to learn about computers, or that computers are somehow fabulously easier to learn than anything else. There are no books on how to learn Beethoven, or Quantum Physics, or even Dog Grooming in a few days."

      While I do agree that your post was informative, I don't think the author whom you're quoting understands the main reason why "Learn $Software_Package in 24 hours" books are so popular. Namely, it's because the computer industry changes so quickly that often people are afraid of committing to a long-term study of a programming language for fear it will drop out of sight (faster than they normally do, at least). The theory that "24 hours" books are popular because of an interesting mix of people's superficiality and impatience isn't totally vacuous, however; it seems to be borne out, if only by the fact that I've never seen a "Teach Yourself LISP in 24 Hours" book.

      *waits for someone to post amazon link to "Teach Yourself LISP in 24 Hours"*

    5. Re:Teach Yourself Programming in Ten Years by sld126 · · Score: 1

      "Writing an efficient, lean, fast program" is not the goal of AppleScript either. You can do some very cool stuff very quickly using AppleScript. Hence the need for a book like this.

      Try changing a file name, ftping to a server, moving that file to a different folder, all in the GUI, with a GUI ftp app, so that the Windoze guy can understand what is going on. All in about 10 minutes, with no programming knowledge, or cli knowledge. That's the power of AppleScript.

      --
      You're just jealous because the voices only talk to me.
    6. Re:Teach Yourself Programming in Ten Years by johnnyb · · Score: 1

      "Programming is not as highly skilled a task as you seem to think it is."

      Two things:

      a) for anything above trivial stuff, yes it is.

      b) even for trivial things, at least in america, a lot of people have trouble with logic. They just don't get the concept "in order for the system to spit it out, it has to be put in there by someone". In addition, they have no idea how to structure a large project, or even set goals so they can do it in several smaller projects.

      Even people with CS degrees seem to have trouble actually accomplishing anything. I am so amazed by all of the companies I see with tons and tons of developers. I always have to ask myself, "what on earth are they doing?" The answer is usually "at least half of them are incompetent, and it slows down those who know what they are doing tremendously"

    7. Re:Teach Yourself Programming in Ten Years by johnnyb · · Score: 1

      "it seems to be borne out, if only by the fact that I've never seen a "Teach Yourself LISP in 24 Hours" book."

      Not quite, but very close :)

      http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y -s cheme.html

    8. Re:Teach Yourself Programming in Ten Years by Shadowlion · · Score: 1

      "Writing an efficient, lean, fast program" is not the goal of AppleScript either.

      In which case a "learn this in 24 hours" book is fine (assuming it's written properly, which the review doesn't seem to think this one is).

      However, the original poster of this mini-thread was ranting against "learn [foo] in 24 hours" books in general, so my response was generalized as well.

  20. Heh. by Anonymous Coward · · Score: 0
    The market for books on AppleScript cannot be a large one, since there never seem to be many volumes in it

    This message brought to you by the Department of Redundancy Department.

  21. Re:The problem with this and all other 'in 24 hour by Anonymous Coward · · Score: 0

    But what is the point of 24h if they are not consecutive? Why don't they make it 25 or 20 or something?

  22. hurting for stories? by kaan · · Score: 1

    having used AppleScript before, I don't see how anything other than a syntax reference would be too useful (and as previous posters have pointed out, such references are available online for free).

    there must not be any good SCO stories for today...

  23. Re:okay.. I have had it with appledot by Anonymous Coward · · Score: 1, Insightful

    This is actually a book review, not an "Apple story."

  24. WTF? Apple Script! Oxymoron! by mnmlst · · Score: 0, Flamebait

    Now I am really confused... On the many occasions I have dabbled with Apple Computers (after the Apple IIe I had in high school), they have been absurdly graphics-centric. Normally, scripting is associated with accomplishing tasks in a command line environment. As for the Apple graphic-obsession, troubleshooting a network without a command line interface is right up there with pacifying Iraq using only a spoon in my book. I know that OS X has a UNIX core and a command line interface, but the bulk of Mac-nuts I have seen would have no interest in this newfangled intrusion. This brings me to the final point: Why has Slashdot posted a book review of a book that will be read by about 100 OS X users?

    A key reason I am not a Mac user myself is that in 1994 when I had 1200 bucks to spend on a computer, the Macs at Computer City (remember them?) were about 1600 bucks while the Compaq 486 with Windows 3.1 was 1100 bucks. History has proven this was a fortuitous event. "Windows/Linux has been a berry, berry good to me. Apple, I don't know. But, Windows/Linux has been a berry, berry good to me." Later, I was able to install a new RAM card on a friend's Mac saving her about 50 bucks, so the hardware proved to be not entirely incomprehensible in spite of its higher cost.

    My 2 cents...

    --
    In principio erat Verbum.
  25. Useful with the right tools by TJ6581 · · Score: 3, Interesting

    I see a lot of posts asking why Applescript is useful. Here's one good reason. Salling Clicker. If you have a bluetooth phone and a mac you can write scripts to do just about anything. The sample ones will control iTunes and the DVD player. I have seen scripts for automatic away messages in iChat when you leave bluetooth range. Some people even use it to control presentations. Check it out it's pretty cool.

    --
    "Freedom of speech has always been the abstract red-headed stepchild of the Constitution"
    -Suck
  26. Oh, Applescript... by perrin · · Score: 4, Insightful

    "debugging is not exactly trivial in AppleScript"

    No, it is not. I've dabbled in two dozen programming languages, and Applescript is the one I've hated the most. It tries to be normal English but because of its strong typing you have to write the sentences exactly correct, which is annoying and hard to figure out once you get past the simplistic 'hello world' stage.

    The way you need to string the words together is not obvious, and is sometimes not even proper English. I really wish Apple would wise up and drop it in favour for something more intuitive on the advanced level, like javascript or python. /me waits for Mac zealots to moderate this as a troll...

    1. Re:Oh, Applescript... by Frobozz0 · · Score: 2, Informative

      Apple does let you use JavaScript OSA syntax. You can install it and start writing in a syntax you're more compfortable in.

      http://www.latenightsw.com/freeware/JavaScriptOS A/ index.html

      --
      "Politicians find new names for institutions which under old names have become odious to the people."
    2. Re:Oh, Applescript... by Mainframes+ROCK! · · Score: 1

      Totally agree, although most of my experience was however with Mac OS 7, 8 & 9. File data types I found were the worst, because Applescript in Mac OS 7, 8 & 9 had 3 types: alias, a file path string and the (incredibly brain-dead) Finder "file xyz of folder abc of folder def of desktop" or something. You were always having to coerce between all 3 to get anything done. I don't why they could not have just settled on one data type for files.

      Also debugging was complicated by the fact that Applescript was very buggy. Mystery hangs I found were quite common prior to OS X. I'd have scripts that would work fine 30+ times in a row and then hang the OS the 31st time.

      I've done a little work with Applescript in OS X; things are much much better and you can use Unix shell commands to bypass most of the broken or missing stuff (eg. the Finder in OS X is not recordable and is not anywhere as scriptable as the older Finder). It only took me one day though to find a real nasty bug: one of my script applications was crashing (in theory impossible of course; should a shell script crash the shell?) and I found that if I removed the space from the file name of the script it worked fine.

      All in all a very frustrating experience.

    3. Re:Oh, Applescript... by Johnny+Mnemonic · · Score: 2, Informative


      /me waits for Mac zealots to moderate this as a troll

      I wouldn't moderate it as a troll, but I would moderate it as "-1 uninformed".

      [jmibook:~] jm% whereis python
      /usr/bin/python

      [jmibook:~] jm% whereis perl
      /usr/bin/perl

      Maybe it requires the developer tools; a large download, but still free. Apple has simply left Applescript in place for those who prefer it. You can even call shellscripts from AppleScript Studio, so don't even have to use AppleScript to take advantage of AppleScript Studio's GUI hooks. Good enough?

      --

      --
      $tar -xvf .sig.tar
    4. Re:Oh, Applescript... by Anonymous Coward · · Score: 0

      Yeah, I used Applescript on OS 7, too. Gah, what a mess. To debug I had to play with things until I got some intuitive sense of the abstractions behind the pseudo-English. It's a heckuva lot easier just to have the actual abstractions in the code, um, concretely.

    5. Re:Oh, Applescript... by GigsVT · · Score: 1

      How exactly do you command a GUI application with python and perl? The way I understand it, Applescript is the only way to automate many things in an OS that so desperately tries to candy coat everything.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    6. Re:Oh, Applescript... by baur · · Score: 1

      Not sure if this answers your question or not, but by using the osascript command you can send a "one off" tell to an application without having to build an entire script. I've not used it much, but what I looked into once was using perl for the program logic, data analysis, etc. and then have perl call osascript to control something.

      Unfortunatly, you still need to know a little AppleScript to use that command, but you don't need to use it for all the program logic (I never really got a hand of AppleScript for anything other than just macros).

    7. Re:Oh, Applescript... by WatertonMan · · Score: 1
      Python and Perl are great, but you end up typically just embedding Applescripts in them. You can create objects for some AppleEvents, but you then end up writing modules for the Applications you script. It can be done but rarely is worth the effort.

      Javascript, as the parent post mentioned, would be great. Unfortunately it doesn't really work well as a OSA in practice. Especially when trying to get objects in other Applications. (Perhaps other peoples milage varies - but I was excited about the Javascript OSA when I found it but found in practice that it wasn't that useful) If Apple made Javascript OSA a full player then I think we'd be more productive. And of course both Acrobat and Safari make extensive use of Javascript.

      Of course given the resources at Apple I don't expect it to happen. As I mentioned elsewhere, they haven't even added recordability to their applications and many applications have a very limited object model.

      Still one can't say Applescript is the ugly stepsister at Apple. The Applescript GUIscripting extensions from last year are very powerful. Likewise Applescript Studio, while limited, is one of those hidden gems most people don't realize.

      When done right Applescript can really extend an Application's power. iTunes is the obvious example. It's probably my most scripted application. Here's a great resource for scripts:

      Doug's Applescripts for iTunes

      Even better are putting icons in your Finder window for common actions. This is a little known feature that Apple provides that really makes the Finder more powerful.

      Finder Toolbar Scripts

  27. Excuse me, by utdpenguin · · Score: 0, Troll

    but have I accidently coem to apple.slashdot.org intead of the main page?? :)

    --
    In Soviet Russia you dant have to put up with these crappy jokes
  28. Great! Of course... by Ratphace · · Score: 0, Flamebait


    ...now all I need is a reason to want to know this and about $3,000 to get a MAC to write scripts on because there isn't anything else entertaining you can do with a MAC. ;)

  29. Re:The problem with this and all other 'in 24 hour by Jon+Abbott · · Score: 3, Funny
    The problem with this and all other 'in 24 hours' is that they don't come with the 24 pack of red bull needed to keep reading the bastard for a full day.
    Exactly. It's about time we started using those matrix-esque head jacks... Then we can start saying things like, "Whoa... I know Applescript."
  30. Most people _are_ beginners. by xanderwilson · · Score: 4, Insightful
    The book's first weakness, though, is that it starts too far down the learning curve in my opinion. The first few chapters of TYA could be read by someone almost totally new to the Macintosh -- they cover such basics as running the scripts installed with the OS and getting new scripts from Apple and installing them.

    Most Mac users I know don't know or do anything with AppleScript, so I don't think it's a mistake to start where it does. I have the old O'Reilly book which is still great as a quick reference, but I'll have to see this one for myself before recommending it to people. IMO, a lot of people who could really benefit from using AppleScript daily aren't because they feel it's too techy for them. Maybe this book is what those people need. On the other hand, I haven't heard anything about 1-2-3, but I've had good experience with a few of Peachpit's books.

    Alex.

  31. Remember Hypertalk? by Animats · · Score: 1

    Remember Hypertalk, Apple's first try at scripting? The executable syntax was borrowed from COBOL-60. The data structures were worse: "field 3 of line 2 of card 1352".

    1. Re:Remember Hypertalk? by panda · · Score: 1

      I used to do a lot of HyperTalk. I even wrotes me some XCMDs in C, baby. (Since lost all the source code.)

      You didn't have to refer to the fields and cards by number all the time, you could (and should) give them names and refer to the names instead. Also, as any good programmer would do, you'd use a variable to hold the current card. This is particularly helpful when recursing a stack.

      I still have my HyperCard 2.1 disks and most of the stacks I wrote all saved on quickly disintegrating floppies.

      As for AppleScript, I've done some of that, too. I would say that it is very useful for automating certain things and for making drag targets. I used to have drag targets on my desktop for doing certain conversions or adding a file/application to a menu, etc. It can be used as a general purpose programming language, but it is ill-suited to that task, and for any seriously complicated scripting on my Mac, I used MacPerl. Since MacPerl does AppleEvents, my scripts could communicate with just about any System 7 or later application.

      I haven't done any AppleScript or MacPerl, since about Mac OS 8.0, so I don't know how things have changed in OS X. I am very seriously considering getting a G5 to replace my current workstation (a homebuilt 800 MHz PIII) in a couple of months.

      --
      Just be sure to wear the gold uniform when you beam down -- you know what happens when you wear the red one.
    2. Re:Remember Hypertalk? by Anonymous Coward · · Score: 0

      HyperTalk was great, especially compared to AppleScript.

    3. Re:Remember Hypertalk? by Phroggy · · Score: 1

      I created Cannons and Castles in HyperCard, a sort-of port from an Apple II game. I attempted to make it as unHyperCardlike as possible, which I accomplished with lots of XCMDs and a hell of a lot of coding.

      I must agree with the AC: HyperTalk was great. It had a gradual learning curve, it made basic things simple, and reasonably interesting things possible, if occasionally tedius. It prepared me for OOP - in HyperCard objects such as buttons are tangible rather than abstract (you can create them, move them around, set various properties, etc. with a normal GUI interface), and you can call handlers and functions in them from other scripts ("get foo("bar") from btn "Click Me" if I remember correctly). Even lexical scoping was new to me, coming from BASIC. Ah, those were the days.

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    4. Re:Remember Hypertalk? by Animats · · Score: 1
      You didn't have to refer to the fields and cards by number all the time, you could (and should) give them names and refer to the names instead. It slowed down considerably when you used named fields. Lookup was a bottleneck. Even the manual admitted that.

      Hypertalk always seemed to be a bad bolt-on to the Hypercard concept. There were some good ideas in there.

      Anyone remember Train Set? Ever look at how it worked?

  32. Applescript is easier, that's why by ianscot · · Score: 3, Insightful
    For the people who use it, Applescript is a whole lot simpler than something like PERL. Take a look at the syntax somewhere, you'll see the difference.

    And who are those people? Graphic designers have loved Applescript for a looong time, because they can write stuff for Photoshop without any hassles. Big advertizing departments will often have a huge collection of legacy scripts they've written for various big tasks -- "See the dimensions of all the graphics in this directory and add those numbers, formatted this way, to the end of the file names." They aren't programmers, their minds don't work that way, but they do have large programmatic tasks they need to get done.

    Let's put it this way: I saw that title, "In 24 Hours," and I wondered how it could possibly take that long.

    --
    "Fundamentalism" isn't about divine morality. It's about human authority.
  33. Re:The problem with this and all other 'in 24 hour by proj_2501 · · Score: 1

    red bull has been sold in the US since 1999.

  34. Re:The problem with this and all other 'in 24 hour by Schreckgestalt · · Score: 1

    Then again, it's only that satisfactory if you're the only one having it. Otherwise, saying "Whoa... I know Applescript" would have quite no effect on others. I'd say "Whoa... I understand the sendmail config file!"

  35. Why Applescript by Mrs.+Grundy · · Score: 1

    I've often wondered who uses applescript. Even in the days of OS 9 its dorky syntax never seemed appealing. Now with OS X you can use something like perl. If you use BBEdit you can run perl scripts right from the editor. I would think that the market for applescript is shrinking everyday.

  36. Re:The problem with this and all other 'in 24 hour by Schreckgestalt · · Score: 1

    All right. I remember times when it was the underground drink here, and every now and then, some cool guy would 'import' them from Austria. I drink it every morning, but I'm starting to wonder what happens with all the bull testicle stuff in my body.

  37. Re:WTF? Apple Script! Oxymoron! by proj_2501 · · Score: 2, Informative

    "Now I am really confused... On the many occasions I have dabbled with Apple Computers (after the Apple IIe I had in high school), they have been absurdly graphics-centric. Normally, scripting is associated with accomplishing tasks in a command line environment."

    Scripting and macros have been part of the Mac user interface since before the actual release of AppleScript. Many Macintosh applications have a second, non-graphical interface available to AppleScripts, allowing them to be controlled or recorded much like the macros in Microsoft Office or the Actions in Photoshop.

  38. Re:24 hours for AppleScript? by Anonymous Coward · · Score: 0

    >P.S. Enough with the Mac pitches today.

    IMO, they're as useful as the "New whatever something vX.new for Linux-something" news (which is not useful at all for 99% of the readers).

  39. Re:A word of advice. by Anonymous Coward · · Score: 1, Funny

    We call it the "green apple splatters".

    Thank you.

  40. better, getting better! by Anonymous Coward · · Score: 0

    acrobat 6, ipod, safari--nice. Will this classic be updated in parallel with the sobig versions?

  41. New my ass by Anonymous Coward · · Score: 0

    I was writing AppleScripts to do that on my LC running System 7 machine back in 1995.

  42. The other side of the coin by Niteshade · · Score: 1

    I have a mac. Ok. I was a fanatic for a while, extolling the virtues of Apple at the expense of Microsoft, etc, but I've outgrown it. A little ironic that Apple and Apple concerns are such flamebait here on slashdot... First, all computers are Machines. They (and their software) are all simply tools to get things done in different environments. AppleScript is a useful tool, and a fairly comprehensive and easy to use one. Doesn't this have its place? Shouldn't the digital community see a good tool as worthwhile, and not to be instantly slandered just because it's specialized and for a different market? Just because you don't use it doesn't make it irrelevant. The Macintosh market is a big one, even if it's not as huge as Windows or Linux. It tends to be fairly forward looking, and Apple does a good job making quality software for quality machines. I guess I don't see why it needs to be constantly relegated to the dustbin by geeks with a holier-than-thou attitude.

    1. Re:The other side of the coin by Anonymous Coward · · Score: 0

      I agree. I use 3 Macs, 2 Sun SPARCs, 2 x86 machines, and 20 RS/6000s on a daily basis. All of them have virtues, but they certainly do not have the kind of overlap I would like.

      Macs are cool. x86 boxes are cool. Windows is an adequate tool (sometimes), and Linux/BSD are cool. For really cool, I want an OS on the personal computing side that actually *works*. All the time. No matter what.

      I'll just keep dreaming :)

  43. Shell Scripting by Anonymous Coward · · Score: 0
    Applescript is way, way better than Linux's shell scripting. You can do so much more than it, and Mac OS X is POSIX compliant, too!

    Mac OS X: The Best Unix(tm).

    1. Re:Shell Scripting by Anonymous Coward · · Score: 0

      Then why does it not have unicode c libs?

      Or hundreds of other features that other UNIXes have.

      OSX is an OLD and poorly updated version of BSD. It is in may ways 5-10 years behind the times. The "Mac" API covers up some of this, but in the end almost makes it worse as Mac and Unix apps now have a serious problem trying to communicate things like files and strings with each other.

      I was in love with the idea of the mac moving to a "real" OS. But what Apple has done in OSX has made virtually no difference. Some things were fixed (VMM! OMFG!) and many new things are even more broken than before.

      So no, OSX is not the bext Unix, it is quite possibly one of the worst modern unixes around.

  44. Re:The problem with this and all other 'in 24 hour by UserGoogol · · Score: 1

    Interestingly, it's manufactured by a pharmaceutical company. I assume its name comes not from bull testicles, but from Taurine, which is a synthetically formed amino acid. See [[Red Bull]]

    --
    "Never attribute to malice that which can be adequately explained by stupidity." -- Hanlon's Razor
  45. AppleScript Problems by buckhead_buddy · · Score: 2, Interesting

    The big lie I always hear about Applescript is that: "Applescript doesn't need lots of documentation, it's self-documenting, english-like, and always current"

    While it's true that the little 3rd party documentation out there has major problems (this book, an overly simplistic Jesse Feiler book, an out-of-date Danny Goodman book, and a Mac OS 9 focused O'Reilly reference), I disagree that AppleScript doesn't need documenting.

    Foremost, it needs some strong documentation on how application writers should be writing their AppleEvent suites and AppleScript dictionaries. This is by far the most non-standard, conflicting, and outright stupid place to ignore.

    Apple has made some half-hearted efforts to write some "standard dictionaries" for suites of software, but if you think css and html are under-specified you haven't looked at these "standards". There's no impetus for you to build the entire "standard" suite into your software. I'm not sure that anyone (including Apple) ever wrote software that actually implemented things like the database suite.

    One problem with not standardizing on open, well specified suites is that you can lose all of your script savyness when a key application is discontinued or decides to overhaul their script interface. Those who wrote MacWrite Pro scripts had their work obsolesced overnight when MacWrite was discontinued. Quark scripters are undergoing some pains right now trying to adapt to the new Quark interfaces.

    Of course, because AppleScript exposes your data model for all of your competitors, you'll make things like exporting data out of your proprietary file format a trivial operation if you stuck with standard suites or even if you exposed all of your functionality via AppleScript. So making fully AppleScriptable applications is not something that the big guys want to do with their data engines.

    Beyond standardization though, AppleScript needs a central repository of script dictionaries and plugins. Right now one's Mac will pick out all of the AppleScript dictionaries on your mac, but what you're trying to automate might be 1,000 times easier in GraphicConverter rather than Photoshop, but if you don't have GraphicConverter on your mac you'll be beating your head against a wall trying to force an app to do something it's not good at. The best one can do today is watch over other people's shoulders via web sites, bbs's, email lists, and by downloading scripts others have written. This whole "steal from someone who's done it successfully" attitude is what makes AppleScript centric web sites seem to spiral into oblivion. Everyone's simply reposting what they've stolen off of other sites, the owne's get frustrated maintaining something that doesn't stand apart from the crowd, and it becomes out of date without constant updates.

    I'm not ignorant when it comes to programming, but I find Python and Perl to be syntactically more forgiving and easier to grasp than AppleScript. I find Cocoa to be more standard and more consistently constructed. I find shell scripting to be more accessible and a better "glue" to bind different tasks together.

    I must admit that I still do write the occasional AppleScript and if you rely heavily on a program that supports it well then it can be a decent tool. But it's long fallen from favor as my first choice of scripting.

    1. Re:AppleScript Problems by artemis67 · · Score: 1

      The big lie I always hear about Applescript is that: "Applescript doesn't need lots of documentation, it's self-documenting, english-like, and always current"

      Sadly, this is very true. Apple has really fallen down on the job of documenting AppleScript, and it's always been underutilized because of it.

      When AppleScript first came out, everyone could understand the potential of the feature, but few people really knew how to use it. Apple's AppleScript Product Manager, Sal Sagohian (or however it's spelled), isn't a programmer, but a layout designer who was devoted himself to becoming proficient in it so that he could automate QuarkXPress... after hammering on AS for a year or two, he was impressing both Quark and Apple with the power of AS everytime he went to the trade shows. At Apple, AS was "yet another cool technology" that was about to fall by the wayside; Apple can promote simple technologies that do great things, but they don't know how to champion complex technologies, and so a lot of great stuff at Apple has just faded away. Someone at Apple saw that that was about to happen with AS, and hired Sal to champion it, which he has. I think he's done a great job of keeping the technology alive, but Apple still hasn't evangelized the masses of Mac users about it.

    2. Re:AppleScript Problems by phillymjs · · Score: 1

      The big lie I always hear about Applescript is that: "Applescript doesn't need lots of documentation, it's self-documenting, english-like, and always current"

      IME, AppleScript's documentation is pretty good. The scripting dictionary built into scriptable apps usually explains things clearly enough-- sometimes if I'm having trouble wrapping my mind around how to extract a specific field from a record, I'll just open up a second window and fool around with a little code until I get it figured out.

      Of course, because AppleScript exposes your data model for all of your competitors, you'll make things like exporting data out of your proprietary file format a trivial operation if you stuck with standard suites or even if you exposed all of your functionality via AppleScript.

      Uh, this is not a Microsoft product we're talking about here. The whole idea of AppleScript is to *facilitate* easy interapplication communication, not to turn applications into Roach Motels for your data (i.e. it goes in, but you can't get it out).

      I know how Microsoft's tactics have become accepted in today's world, but the ideal goal of a software company is to make your products so good that customers will *willingly* stick with them-- not to dream up ways to lock the customers' data up so they have to keep using your shit ad infinitum or face an extremely painful migration away from it.

      ~Philly

    3. Re:AppleScript Problems by abulafia · · Score: 1
      The whole idea of AppleScript is to *facilitate* easy interapplication communication, not to turn applications into Roach Motels for your data

      Yes. Agreed. That's why it is a problem for certain vendors.

      Data hostage situations don't happen only under Win/Office...

      --
      I forget what 8 was for.
    4. Re:AppleScript Problems by Anonymous Coward · · Score: 0

      Yes, the hardest part of Applescript is understanding the application dictionaries (oh, and the strong variable typing)

      Having to figure out someone elses data model using the barest of documentation is extremely difficult. I spent almost a week figuring out how to script a small application that came with a Dymo label writer. The techs didn't know anything about it, there was no one to contact, and no working examples to copy off. It was pure luck and persistence that got it to work.

      The list of agravating trial-and-error experiences I've had goes on and on. BUT!!!! The amount of effort I've saved with successful Applescripts is amazing. I run a 10 person company with 3 people due to Applescripting. Perhaps there are other ways it could be done, but probably with about the same amount of hassle. /nuff said.

  46. WHAT THE FUCK IS A "HONSTEPUCK"? by Anonymous Coward · · Score: 0

    It sound like some obscene sex practice in German:

    Honstepuck: (v) The act of pucking someone's honste. This is akin to spooning out shit from your asshole and feeding it into your foreskin while your cock weeps precum onto your mother's left tit which is smeared in mentrual fluids from a horse that has just been fucked by George W. Bush.

    Oh yeah. By the way, Vote for ANYONE but George W. Bush next election. I'd even try to get Nixon in again since he's more honest and trustworthy than George W. Bush or anyone else from that fuckinf Nazi clan.

  47. Re:The problem with this and all other 'in 24 hour by UserGoogol · · Score: 1

    Some do. But 24 hours is an inherently attractive number for marketing.

    --
    "Never attribute to malice that which can be adequately explained by stupidity." -- Hanlon's Razor
  48. Programming? by WatertonMan · · Score: 2, Insightful
    Debugging is hardly mentioned (3/4 of one lesson), and debugging is not exactly trivial in AppleScript. I also found no mention of my pet demon with AppleScript; its incredibly strong typing and problems with having data in the wrong type; this is a classic problem with files and file names. In reality, this book teaches you the language without really getting down to teach you how to program in the language.

    This is a very damning problem. One could argue that the O'Reilly book was primarily a reference book. (A reference book dealing primarily with Sys9 and with only a few bits about 10.0 OSX features) But learning Applescript really ought to deal with how to code Applescript.

    It is sad that there are not really good books on Applescript. While the language itself is pretty poor (IMO) the concept is excellent. Applescript Studio, while flawed, is a great tool. Most significant, with OSX, you can mix scripting languages to do very powerful things. i.e. most of my scripts are combination shell scrips and Applescripts. I also have a lot of Python/Applescripts. With Apple's GUIScripting additions to Applescript it is an amazingly powerful tool.

    The only downside in Apple's toolkit are fairly weak scripting support in some important applications. (cough) Mail (cough). The other downside is debugging, which is surprisingly weak.

    If I had a wish, it would be for something like Applescript studio, but with solid debugging and support for shell scripts, Applescripts, Perl scripts, Python scripts and maybe even TCL/TK. It would really be a killer feature for Unix types.

    1. Re:Programming? by Anonymous Coward · · Score: 0

      The only downside in Apple's toolkit are fairly weak scripting support in some important applications. (cough) Mail (cough).

      Right! Why can't Apple provide the level of scriptability of say Outlook. Microsoft makes writing a virus child's play. Try harvesting an address list from Apple Mail. Good luck!

      I'm sorry Apple but you're going to have to try harder to win virus developers over to your platform!

  49. holy crap... by Anonymous Coward · · Score: 0

    I thought this was a funny joke. I guess the Mods are a bit apple-sensitive today.

  50. Look on the brightside by siskbc · · Score: 2, Funny
    Guess it is appledot day today..

    At least the maczealots are out of modpoints by now. Except for the three of them that will hit me. ;)

    --

    -Looking for a job as a materials chemist or multivariat

  51. Is there an ambitious programmer... by manonthemoon · · Score: 1

    willing to create some new SlashCode to automatically take this troll beneath my viewing threshold? Its getting old... fast.

  52. Excellent review by Anonymous Coward · · Score: 0

    Much better than the usual dreck book reviews on Slashdot.

  53. Re:won't work on g5 by Anonymous Coward · · Score: 0

    A new G5 1.6Ghz with AGP 8X and PCI-X?
    Funny, I wonder where you got that machine.. can't be from Apple.

  54. Re:3 Apple Stories in a row? by Anonymous Coward · · Score: 0

    Sure there is. Go outside and watch some grass grow.

  55. Re:won't work on g5 by etresoft · · Score: 1
    The same operation would take 2 minutes. That means you haven't tried it have you? Acrobat 6 installed just fine on my 14" iBook, and did so in way less than 6 minutes. The PC locked up during the install of Acrobat 6.

    (It is a moot point though, Acrobat 6 is awful. I went back to 5.1)

    A 486/66 is faster than a G5 huh? Even the PC bigots wouldn't believe that one.

    My biggest pet peeve with these benchmarks is that they only test one particular operation. How about testing how long it takes the start menu to appear on a 2Ghz PC? How about how long it takes to edit a file in notepad when the only part of the window it displays is the title bar background? How about testing how long it takes to receive an e-mail when an entire University's IT system has been shutdown due to SoBig?

  56. Used copies are even cheaper by Anonymous Coward · · Score: 0

    And used copies are even cheaper, starting at $16.95. Unless somebody has already bought that by the time you read this. But Amazon usually has a decent number of used book sellers with books in decent conditions.

    However I'm not sure if you'll get free shipping with used books though. But you'll definitely get free shipping with orders over $25.

    1. Re:Used copies are even cheaper by Anonymous Coward · · Score: 0

      used books on amazon do not qualify for free shipping!

  57. Rabid Mac fan hates AppleScript by etresoft · · Score: 1
    You would have a hard time finding a stronger Mac zealot than myself. That having been said, I hate Applescript.

    I only use it because I need to use some Classic apps that don't know bash is running.

    I have one script that only runs from within Script Editor. It refused to work when saved as an Application.

    And, of course, this is a new development. It used to work as an application, but never on the first try. I wized up an put an exception handler in to display a pretty message that "Applescript is acting up today. You have to run your script again."

    I guess the new configuration is better. It works from ScriptEditor every time now.

    But at least the book review works. I do need such a book and will be buying it.

    I have never understood why, but in 1987, there were far, far fewer Mac users than today. But there were Mac books and magazines everywhere. Now, people are surprised when a Mac book is published. "The user base is too small." It was a helluva lot smaller 15 years ago.

    1. Re:Rabid Mac fan hates AppleScript by Phroggy · · Score: 1

      I have never understood why, but in 1987, there were far, far fewer Mac users than today. But there were Mac books and magazines everywhere. Now, people are surprised when a Mac book is published. "The user base is too small." It was a helluva lot smaller 15 years ago.

      This is an excellent point.

      I think within the Mac community, it's never been surprising. However, the Mac community is expanding to include increasing numbers of Slashdotters, so this sort of thing is being posted to Slashdot now, whereas three years ago it was much less common. So, those Slashdotters who aren't (yet) a part of the growing Mac user base are all wondering what the hell is going on and why we all care. Back in 1987, they were probably completely oblivious.

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
  58. Hypercard versus AppleScript by Anonymous Coward · · Score: 0

    Could someone please explain the difference between Hypercard and AppleScript. Are they the same thing, i.e. is AppleScript a newer version of Hypercard? Thanks. If they are not the same, could someone do a comparison.

  59. Re:won't work on g5-groundhog day by zpok · · Score: 1

    I pity the girl. Her whole life lost doing the same thing all over again on a platform she hates.

    How come this is still insightful? Who got an epithamy on this one? Who converted to the holy church of MS/Jobs/Linus by reading this troll?

    --
    I think, therefore I am...I think.
  60. Re:won't work on g5 by Anonymous Coward · · Score: 0

    Okay, I just tested your little theory and installed Acrobat 6 on my dual 533 G4. It took a total of 32 seconds from start up.

    Oh also your G5 which only started shipping 4 days ago, and I doubt you really have, actually dosent have PCI-X, only the 1.8 and (dual)2.0 models have that.

  61. Well.... (was Re:Somewhat off topic but...) by bahamat · · Score: 1

    Why applescript?

    I've got a better question.

    What am I going to do with the other 22 hours?

  62. Mod this up! by Anonymous Coward · · Score: 0

    If you were waiting for me to show up, here I am! :)
    Thanks for mentioning that it was a referral this time.

  63. How to Debug AppleScript by SimonDorfman.com · · Score: 1

    I recently started learning applescript to help automate page layout with InDesign. After looking around and trying some demos, it looks like the best software for writing applescript is Script Debugger.
    http://www.versiontracker.com/dyn/morei nfo/macosx/ 8048
    The bad news is it's $189!

    I just ordered a book called AppleScripting InDesign which has good reviews. It's quite pricy though, $40 at amazon.com and I couldn't find it anywhere else. It's a pretty niche book so I guess that's not such a surprise.
    http://www.amazon.com/exec/obidos/ASIN/ 0970726511/

    --

    --
    A little nonsense now and then is cherished by the wisest men. -Willy Wonka
  64. O'Reilly to the rescue? by bluethundr · · Score: 1

    I seeO'Reilly has a book on this topic on the way. I wonder how it'll stack up. At least we can be reasonably sure that it'll be up to date. O'Reilly usually gets it right. Guess we'll just have to see. I personally looking forward to see how it'll stack up.

    --
    Quod scripsi, scripsi.
  65. What's with all the snobbery? by Anonymous Coward · · Score: 0

    I once saw Hypercard being put to good use by my sister who is a language (French & Spanish) teacher.

    She used Hypercard to produce interactive slide presentations that produced sound when you clicked on different objects on a card (that she either drew herself back in those expensive scanner days or took from clip art). She would record her own voice and stuff. The kids would be asked questions, they'd have to provide the answer and they were awarded points for it. For hints they could click on objects on the card and my Sister's dulcet tones would give them an audio reminder which taught them how to pronounce the word.

    Not bad for a languages teacher with zero programming experience, zero interest in becoming a programmer, and working on an old monochrome Mac Classic with an 8Mb hard disk and no network connection!

    So for all the arrogant talk about "my language is better than yours" that seems to be going around here, please try to bear one thing in mind. Macs are used by people with no interest in becoming geeks. They are used by people who just want to switch the thing on, get some work done, and switch it off again. Simple scripting languages like AppleScript and Hypercard before it are just logical things to bring to this market.

    Applescript serves its purpose. Not useful to YOU? Get over it! I don't find C++ very useful in MY line of work, but you don't see me disparaging it.

    1. Re:What's with all the snobbery? by Anonymous Coward · · Score: 0
      You make some excellent points. I love to hear stories like this because it points out that with the right combination of technology, anyone can make more powerful use of a computer. This was the promise of Apple in the beginning, although I think they have lost some focus in recent years. Sure, it's still easy to use but a certain amount of savy is now expected. Apple is not exactly of the computer illiterate.

      Nonetheless Apple is light years ahead of Microsoft where there idea of a interactive computing is to make choices from their limited pre-digested menus. Lord help the Microsoft user if he or she strays off the beaten path.

  66. Here's The Link for the Best Price... by alternapop · · Score: 1
  67. Applescript authoring environments by Anonymous Coward · · Score: 0

    Facespan is a GUI environment for making applescripts. It seems to me though that an object oriented flowchart interface would be possibly the best method of making applescripts.

    I have had very little experience with applescript. A colleague and I once wrote a applescript that would forward the subject of an e-mail from particular person to our sprint cell phones as a text message. Worked like a charm but the process of writing the script was very exacting. (This is why most user shy away from applescript)

    I understand that there are many print houses that do amazing things with applescript. They have my admiration. There is a huge amount of potential in applescript. But it's exacting nature keeps that potential locked away.

    On the other hand... It was applescript that gave me the idea of using photoshop to make dynamic graphics on the web server through photoshop actions and folder actions. You should have seen the server administrators face when I brought up the idea of putting photoshop on the web server. He about had kittens. (Its good for him. Keeps him on his toes.)

  68. You're an idiot. by Anonymous Coward · · Score: 0
    So you think something with syntax like
    ($host,$port)=split(/:/,@ARGV[0]);
    $command=@ARGV [1];
    is preferable to something like
    tell application "Finder"
    display dialog "Hello, world!" buttons {"OK"} default button "OK"
    end tell
    ???

    Well, you must be a moron. AppleScript was created to make programming accessible to more people-- if you can read English, you can program in AppleScript. And THAT is appealing. Perl looks like something that appears on the screen when a cat walks across your keyboard.
    1. Re:You're an idiot. by Mrs.+Grundy · · Score: 1

      You're comparing a hello world script to some text parsing code. Get real. Why don't you show me an applescript for parsing a weblog buddy and finding a particular string. I bet it doesn't go like this

      Tell file "weblog"
      parse itself
      find "something useful"
      end tell

      and I bet it is five times as long as a similar perl script

      and slower

      and I bet you won't find much help from the internet if you can't figure it out yourself.

  69. Strong typing? by MacDork · · Score: 2, Informative

    but because of its strong typing you have to write the sentences exactly correct

    You mean proper syntax? Most every language I've ever used enforces that. Strong typing in AppleScript?

    on run

    set x to "A string"

    foo(x)

    set x to 1

    foo(x)

    set x to x as string

    foo(x)

    end run

    on foo(some_var)

    display dialog some_var

    end foo

    That script will run. Definately not strong typing.

    1. Re:Strong typing? by Anonymous Coward · · Score: 0

      Right, AppleScript has strong, dynamic typing. Strong/weak and dynamic/static are often confused but aren't the same thing.

  70. tell people slashdot crowd check this out end tell by Ukab+the+Great · · Score: 2, Informative

    Here's a cool hack that someone did in applescript that illustrates why one would want to learn Applescript.

  71. Yes debugging it is a pain... by rune2 · · Score: 1

    Applescript's fairly simple from an object oriented programming point of view and the support built into many applications is cool but it takes forever to debug anything written in it especially because it doesn't always do everything how you would expect it to (A few litte quicks in some of the commands etc). Something that would seem really simple and straightforward oftens ends up behaving much differently than you expect it to. Oh and the syntax seems to be completely bass aackwards but then again it is mac. ;-)

  72. You may want to wait by pdferguson · · Score: 1

    After wasting my money on Feiler's utterly worthless "Mac OS X Developer's Guide" (worst... Cocoa... book... ever...) I wouldn't buy a book about AppleScript or any other subject from this author. Don't just take my word for it--check out the reviews of his books on Amazon, and decide for yourself.

    If you're interested in an up to date book on AppleScript, I suggest waiting for "AppleScript 1-2-3" by Apple's AppleScript product manager, Sal Soghoian, which is due to be published this fall.

  73. in html by SHEENmaster · · Score: 1

    here

    Slashdot likes to break up long strings (such as URLs), so it's best to make them a link.

    --
    You can't judge a book by the way it wears its hair.
  74. Re:The problem with this and all other 'in 24 hour by Anonymous Coward · · Score: 0

    What book??

  75. Re:The problem with this and all other 'in 24 hour by Pope · · Score: 1
    but I'm starting to wonder what happens with all the bull testicle stuff in my body.

    Do you also believe that Bubble Yum is made of spider eggs? Yeesh, don't believe every silly rumour that goes around...

    --
    It doesn't mean much now, it's built for the future.