 |
| |
Others say...
"A book to be read again and again -- or not at all!" No, don't start with "AppleScript: The Definitive Guide." Although I was highly motivated, diligent, and intelligent (if I may say so), Neuburg's exigent, articulate, and idiosyncratic "guide" defeated me, and I had to buy and work all the exercises in another book (Kochan's "Beginning Applescript") to obtain the background needed to appreciate this one. The highly praised chapter in the first edition about conquering FrameMaker has been moved to an Appendix in the 2nd Edition, but since Neuberg sends the reader there on page 75, it is still useful and timely. It would have been more useful had he chosen a scriptable application that is on every Macintosh, or one, at least, that is shipped with Tiger, so that readers could follow his adventure rather than simply read about it. The worst that would have happened is that a newer modification of the application might have come out, in which case, as with FrameMaker, the reader could read about, but not experience, the process. 'Introductory' books in the liberal arts ("The Discarded Image" by C.S. Lewis comes to mind) are larded with quotations in Greek, Latin, French, and German, not to mention others. In exactly the same spirit, Neuburg shifts shamelessly from AppleScript to Perl, especially, but also to Unix, Objective-C, Python, and JavaScript, not to mention others. If you can't follow such examples -- he tells you that is all right -- you get the point that AppleScript is compatible with these and more, and he has the chutzpah to mention his own JavaScript book if that is your deficiency. The effectiveness of good programming books diminishes as you move away from the computer. Programming is learnt at the keyboard, not in the lecture hall. That said, this book has an astonishing amount to offer to someone perusing it in an easy chair and mulling things over, rather than trying a succession of incorrect guesses at the keyboard. Kochan's book taught me, quickly and easily, how to move a Finder window around the screen, but when I decided that the window I wanted to move was the one holding the AppleScript program, Kochan left me without a clue. The "Oh, yeah" that finally got it moving occurred to me over a sausage biscuit in a fast food place with Neuburg's book in front of me. He didn't tell me what to do, but his dictionary exposition got me to where I could figure it out for myself. As other reviewers have pointed out, Neuburg's emphases are upon the obscure, the contradictory, and the difficult. To explain these, he has not bothered with the obvious, the consistent, and the easy. They do not interest him, and he pays us the high (too high) compliment of implying that the obvious, the easy, and the consistent need not be explained at all. If you wish to learn AppleScript and must learn it on your own, begin with a book (Kochan's, for example) that will make you reasonably competent in a hurry (three months, in my case). Then, when you have discovered that AppleScript is not as easy as you thought, you are ready for Neuburg to confirm your worst suspicions about its intricacies, devastate your casual assumptions about obvious solutions, and give you pride in beginning to learn AppleScript. If you buy this book, you must read it several times, or you will not learn much of what it has to say.
"Excellent book, but even better with Amazon or O'Reilly "search"" Matt Neuburg's AppleScript book is an excellent overview of AppleScript. Alas, it is limited, as all such books are, by AppleScript's peculiar nature.
The problem is that AppleScript is primarily useful when it interacts with scriptable Applications; this means that many important commands one may think of as belonging to AppleScript belong to Applications instead [2]. If you working to extend an existing script, and decide to research a command in the excellent book index Matt built himself [1], you'll often be frustrated. The command, you see, belongs to the Application, not to AppleScript.
On the other hand, there's a good chance Matt used in the command in one or more examples. In the absence of a companion book entitled "AppleScript for Applications" [3] you'd like to find those examples. Alas, that's where you want a full text search engine.
The good news is, there are two. The even better news is that O'Reilly could make their engine much more visible and useful, with advantages for everyone.
Consider the case of the 'Duplicate' command, which is supported by iTunes (among others) and the Finder (in slightly different ways, no doubt). When I tried Amazon's "search within the book" I discovered several illuminating references. Similarly, O'Reilly allows one to search within the book as a promotion for its Safari eBook library.
The Safari search works well, but they don't want to give away too much for free. You can only read a snippet of information in the search results. A snippet that doesn't, currently, include the page or section number. If you click further you get to the 'buy safari' screen, but you also get to see the section number. Now, you can return to the book and read the information.
O'Reilly could make all of us (and themselves) happy by keeping Safari just as closed as it is today, but merely adding a section reference to the search results they freely expose already.
Here's the win-win for O'Reilly, Matt, Amazon and us:
1. Include the section reference in the initial search results screen. 2. Promote the search facility in every published O'Reilly book and explain how to use it on the O'Reilly book page. 3. If need be, request readers register to obtain this service. O'Reilly doesn't do spam, but they can suggest email subscriptions, RSS feeds, etc during the registration process.
Let us count the wins:
1. Matt's book is suddenly a better book. Readers get more value from it. They use it more. They like it and O'Reilly more.
2. O'Reilly gets ongoing visits from its customers.
3. O'Reilly gets free, regular, promotion of Safari services.
4. Amazon sells more books.
5. O'Reilly does not reduce the value of Safari, they enhance it by introducing users to it without giving it away.
It's a win-win for everyone. I just hope someone at O'Reilly can see the profit in it for them.
john
[1] In my real life I'm a knowledge representation/informatics geek. I have a lot of respect for the unrecognized intellectual labor that goes into producing a truly excellent index. In this case Matt did the work himself!
[2] Many applications may use the same string to refer to somewhat similar functions with slightly different syntax and semantics. This "ontologic dilemma" is a kind of uncontrolled overloading, and it makes AppleScript very challenging to use.
[3] If Matt decides to sell an "AppleScript for Applications" as a Tidbits eBook I'll pay for mine in advance!
"Not helpful to a beginner" It seems like key pieces of information have been left out of this book, which is very atypical for any of the Definitive Guide series from O'Reilly, and of O'Reilly books in general. I picked up this book because it was the most recently published on the topic, and I'm still confused even after reading it. The first three chapters were on very basic subjects such as why you would want to use Applescript in general, where you would want to use it, and basic concepts. Next, part two is all about the syntax of Applescript, piece by piece. This is all very nice, and it probably is complete and correct, but it is like handing someone a maintenance manual on a washing machine who has never seen one before. Now that I know how to fix a broken one, what do I do with the actual machine itself? Part 3, "Applescript in Action", at first looked promising, but actually it just tells you how to fine tune your applications and shows some advanced features without ever really showing you specific problems that Applescript could solve and then solving them using the language. This is probably a good reference for someone who already is an experienced Applescript programmer, but I didn't find it helpful. I've ordered "Beginning Applescript" by Kochan to try to get some more remedial help on the subject. Hopefully, between these two books I can really learn Applescript, rather than just dabbling in it, which is what I've been doing for some time.
"A great book for intermediate or advanced users..." I'm frankly surprised by some of the reviews which suggest this is a great beginner's book... I really don't think so. It covers a lot of conceptual material which isn't going to help you figure out how to write a basic applescript function. In my opinion, this is a book for moderately experienced scripters who would like to know the inner workings of Applescript, and the critical little items that can cause a script to fail. It provides excellent insight into script objects, recursion, polymorphism, parenting, variable scope, closure, objects, targets/nested targets, references, dereferencing, raw appleevents, and other advanced topics. If you need a book to teach basic programming, I'd recomment Hanaan Rosenthal's book instead. Buy this one after you've finished that one.
"Great for top-to-bottom understanding" Matt Neuburg has written a great text. It's easy to read and understand, and it's great a for a thorough understanding of the language. The first section of the book doesn't discuss code very much; moreso the practical application for the language in a real-world environment. The second section delves right into code, giving practical examples and helpful tips. After reading the first two chapters of the second section, I was writing simple programs to control applications. Great book for a beginning AppleScript programmer; even better book for a person completely new to programming.
|
|
|
|
|
 |
|
 |
Buy Cheap Stuff Now!
|
 |
| |
AppleScript: The Definitive Guide, 2nd Edition
 |
List Price : $39.99
Our Price : from $7.00
|
Special offer for you..find the cheapest!
chrissy's used books and DVDs offers this stuff with condition New, new for:
 | Price : $7.00 Usually ships in 1-2 business days
|  |
GoodBookCo. offers this stuff with condition New, new for:
 | Price : $10.00 Usually ships in 1-2 business days
|  |
woodys-books offers this stuff with condition New, new for:
 | Price : $21.97 Usually ships in 1-2 business days
|  |
new_books_today offers this stuff with condition New, new for:
 | Price : $21.98 Usually ships in 1-2 business days
|  |
johnbuono offers this stuff with condition New, new for:
 | Price : $22.00 Usually ships in 1-2 business days
|  |
ForgottenFinds offers this stuff with condition New, new for:
 | Price : $22.99 Usually ships in 1-2 business days
|  |
supermoviedeals offers this stuff with condition New, new for:
 | Price : $25.04 Usually ships in 1-2 business days
|  |
pbshopus offers this stuff with condition New, new for:
 | Price : $25.05 Usually ships in 1-2 business days
|  |
pbshop offers this stuff with condition New, new for:
 | Price : $25.05 Usually ships in 1-2 business days
|  |
Amazon.com offers this stuff with condition New, new for:
 | Price : $26.39 Usually ships in 24 hours
|  |
What our customer's say!
"Outdated", I absolutely love almost all O'Reilly books, with the exception of the books by Jesse Liberty (horrible writer, never buy any book by him), and own well over 20 of their books myself so please do not take this as a knock against O'Reilly.
When the book was written it was accurate but AppleScript has changed drastically since Xcode 2.0 and when Xcode 4.0 comes out shortly it will change even more. If you're looking for an AppleScript book you'll need to wait a few months till the newer books are released with current, relevant information. Not even Apple has bothered to update their own documentation in years so the novice is pretty much left out in the cold.
This book was printed over four years ago and in computer time that is a LONG time. Keep this in mind for ANY computer development book. Computer systems change at a dramatic rate so you absolutely must get the latest books to make sure you have the best info.
"Written more as a narrative than a technical book", First, I will state that I am a hands-on software development professional with thirty years' experience. So I have a little background on which to base my opinion. The style of this book makes it nearly impossible to produce answers to the practical questions that I have. The text dances all around any definitive answers, forcing the reader to intently analyze the information provided so that a practical solution can be formed. Clearly, the editor did not stop the author from continuing down the path of writing a book for those who are already quite familiar with applescript. If you are already an applescript programmer, this book might be of use. If you are attempting to learn by example and concept as I am, look elsewhere for explicit information. I will say that this book is an anomaly so far as O'Reilly books go as I generally find them to be quite excellent.
"Pretty Good Book about a Problematical Language", I'm a big fan of scripting languages -- I've been scripting the UNIX shells since 1978, and I've done a lot of work with Perl since the early 1990s. About two years ago, I bought an iMac running MAC OS X Tiger, and have been delighted with the machine and the software bundled with it (which includes Perl, Python, PHP, Tcl, bash, and tcsh). I thought I'd take a stab at learning AppleScript in order to extend my knowledge of my new machine and "Apple's way of doing things." By and large, I like O'Reilly publications, so I picked up the second edition of Neuburg's book. I'm quite knowledgeable about operating systems and programming languages, and have designed and built several non-trivial applications.
The good news is that Mr. Neuburg seems highly knowledgeable about AppleScript and does an excellent job of communicating its bugs, design limitations, and other shortcomings. The bad news is that I have no intention of wasting my time trying to learn such a flawed tool. This should not be interpreted as a failing of Mr. Neuburg's book -- I am grateful to him for communicating so clearly the problems with AppleScript, and I owe him a debt of gratitude for saving me a lot of time. I had been considering doing some work with Automater, but I think I'll stick with cron(1) scripts.
The most salient section of Mr. Neuburg's book is Appendix A, a sort of case study of using AppleScript to rename illustration files used in the FrameMaker files of a book by chapter number and sequence number within each chapter. Mr. Neuburg says that this was a requirement of his publisher. As someone who has worked with scholarly and technical publications for most of my professional life, I can state emphatically that any publisher who embeds chapter-sequence data in filenames is making headaches for himself, but I suppose O'Reilly has their own way of doing things. The AppleScript process described by Mr. Neuburg looks like it must have taken hours, if not days, to develop. Having been faced with a similar problem for various FrameMaker projects, I can only compare Mr. Neuburg's AppleScript experience with my homebrow process, which was roughly as follows:
* convert the binary FrameMaker files to MIF with fmbatch * extract the illustration names with egrep(1) * create target filenames from the original filenames using awk(1) * rename the illustration files using a shell script, possibly generated with awk(1) * insert the revised illustration names into the MIF files with sed(1) * compare the old MIF files with the new ones with diff(1) to make sure the proper changes were made
This process takes about fifteen minutes. And even for someone not familiar with the individual UNIX tools, the documentation is straightforward, and the tools, once learned, can be used in an infinite number of applications. Given the uncertainty about when or how AppleScript can (or can not) be used in any context, I'll stick with tools that have proven their worth.
"Excellent reference manual for a niche language", This is an exhaustive reference manual for AppleScript, a scripting language included with all Macintoshes. It is not a tutorial, but if you have some programming experience of any kind you will be able to use this manual to construct AppleScripts. The book was published in January 2006 and is up-to-date through Tiger (Mac OS X 10.4). It includes a little coverage of Automator. There is some description of other helpful tools such as Script Debugger, a third-party replacement for Apple's Script Editor that provides a lot of additional capability.
I did some work in AppleScript about ten years ago to automate a nightly build process. AppleScript was the right tool for the job, but getting it to work was a lot of aggravation and I didn't look at AppleScript again. Recently I was asked to prepare some AppleScript demos for my local computer user group, and I got this book as a reference. AppleScript is still as aggravating as ever, but I was able to answer all my questions and complete the demos by using this book and its wonderful index.
AppleScript has evolved a lot in the past ten years, in particular by adding a number of object-oriented ideas and by increasing its interoperability with other programming systems (for example, Python, JavaScript, Perl, Ruby, Carbon and Cocoa based applications). Neuburg does a good job of explaining all these features, and he is particularly good on strategy issues. AppleScript can be used by itself but hardly ever is; you should always be thinking of combining it with existing applications and systems to solve your problem.
The major challenge in AppleScript was and remains figuring out the data types and operations supported by a particular application. Neuburg is honest about this, and recommends extensive experimentation and test scripts to figure out how the applications work.
Is AppleScript worth knowing? Neuburg doesn't really make a strong case for this, although his Chapter 1 is a good try. He works through an impressive example in Appendix A, including all the roadblocks and wrong turns. But the example is to clean up a book manuscript prepared in FrameMaker to meet the publisher's standards before turning it in. I think this is a good job for AppleScript, but how many people would need to do this job? I think AppleScript is still a niche language, but if you work in that niche this is an excellent reference.
"the grammar book of AppleScript", We wouldn't know something, especially certain technology very well until we know its limitations (or exceptions).
The extensive explorations in this book chart out the boundaries of AppleScript.
If one needs to consult "dictionaries" to acquire AppleScript vocabulary, this book is definitely the grammar book for speaking the language correct-ly.
You might need this... Apple Training Series: AppleScript 1-2-3 details..
|  Automator for Mac OS X 10.5 Leopard: Visual QuickStart Guide details..
|  AppleScript: The Missing Manual details..
|
 Beginning AppleScript (Programmer to Programmer) details..
|  AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Second Edition details..
| |
Read this reviews before You buy...
"Applescript: The Difinitive Edition", This book makes it easy to learn the basics of Applescript. The author is adept at taking the reader (student) by the hand and covering the territory.
"Good for ADVANCED Applescript -- NOT beginners", The problem with this book is that it seems to be the "default" book for the subject...which it should not be. It contains an in-depth and exhaustive look at all the nooks and crannies of the AppleScript language itself; but almost nothing about how it is actually applied (i.e., how to control other applications).
If you are looking for a "how do I use AppleScript to do stuff on my Mac" book, look elsewhere. If you are a programmer and looking for advanced details on AppleScript, this may be the book for you.
""AN APPLESCRIPT A DAY, KEEPS THE MUNDANE MAC TASKS AWAY"", Have you ever wondered how to get your Mac to do more work for you? If you have, then this book is for you! Author Matt Neuburg, has done an outstanding job of writing the second edition of a guide that teaches AppleScript like its never been taught before to allow you to create scripts for whatever you need your Mac to do.
Neuburg, begins by explaining what AppleScript is, motivating the reader with examples of various ways and means for putting AppleScript to use, and defining fundamental terms that the reader will need to understand. Then, the author shows you how to develop AppleScript as a programming language. Finally, he describes aspects of AppleScript in practice and in relation to the wider world.
In this most excellent practical guide, the author shows you how to harness the awesome power of your Mac and control both the system and the applications that run on it. More importantly, you'll appreciate this guide's clear and straightforward approach.
"This book really is definitive and realistic", I have programmed in Applescript for many years, but this book really helped to clarify a number of issues. This is no starry-eyed, AppleScript-can-do-anything fluff job, but a down-to-earth comprehensive description of a powerful, sometimes quirky, tool that will make your Mac even more useful, if you are willing to invest some time to learn.
I highly recommend this book for anyone thinking of using AppleScript, or anyone already using it.
"Second Edition", Please note that any reviews prior to 2006 are for the first edition of this book.
|
|
 |
|
 |
|
|
|
|
|
|
|
|
|