O'Reilly logo

AppleScript® Programming for the Absolute Beginner by Jerry Lee Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Implementing Conditional Logic and Working with Loops

Two core features provided by all modern programming languages are the ability to execute conditional logic and the ability to perform repetitive tasks using loops. Conditional logic involves the examination of data and execution of different sets of programming statements based on the value of that data. Using conditional logic you can develop AppleScripts that alter their execution based on the data that they are presented with. In AppleScript, conditional logic is implemented using variations of the if statement. Loops are sets of programming statements that are repeatedly executed in order to process large amounts of data or to perform a repetitive process over and over again. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required