Reddit Reddit reviews Apple Training Series: AppleScript 1-2-3

We found 1 Reddit comments about Apple Training Series: AppleScript 1-2-3. Here are the top ones, ranked by their Reddit score.

Computers & Technology
Books
Mac Hardware
Computer Hardware & DIY
Personal Computer Books
Apple Training Series: AppleScript 1-2-3
Check price on Amazon

1 Reddit comment about Apple Training Series: AppleScript 1-2-3:

u/Eight_Quarter_Bit · 2 pointsr/macsysadmin

As someone who has written several thousand lines of AppleScript, including a single application clocking in at over 3000 lines by itself, I cannot recommend Applescript 1-2-3 enough. The book is very clearly laid out, easy to read, and ramps up difficulty at a very mild pace. It's a few years old now, but not too much has happened to the language since the book's publication date. The only notable language addition that the book does not cover is the ability to create your own full-fledged libraries in Mavericks+.

Also, just to point out the inverse of Kingtheseus' point, it should be noted that any shell commands can be executed from within an AppleScript with a simple "do shell script" line.

While it is true that Apple is more prone to dropping features without warning than other companies, AppleScript has been around for 22 years –since System 7 in 1993. That's only 3 years younger than BASH, the shell that interprets most "Unix scripts".

Learning AppleScript has several benefits. Many OS X applications (particularly those that are "Mac first" or Mac exclusive) only expose certain functionality via AppleScript dictionaries, not shell script commands.

Applescripts can also have full Cocoa GUIs, has a type of variable (the "property") that stores its modified values across executions (a lot easier than writing a BASH shell script that stores and loads values from a text file,) you can display interactive GUI dialogs to users with a single line of code, easily package entire AppleScript "apps" that contain all sorts of program resources in a real app bundle, automate all native OS X GUIs (though that should always be a thing of last resort. Trust me.), and much, much more.

It is a wonderful language, and as a Casper sysadmin I have found it invaluable on numerous occasions.

Aside from the book, Script Debugger from Late Night Software is practically mandatory. It's been around nearly as long as AppleScript itself and is an invaluable tool for writing anything beyond a dozen-line quickie. Other useful tools include UI Browser from PFiddlesoft and Key Codes from Many Tricks, just in case you do need to script another application's GUI.