Make personalised newsletters
Learn how to automate your newsletters using AppleScript
AppleScript is a scripting language included in OS X; you use it to automate tasks in other programs. These tasks can be anything from creating new folders to sending emails. It’s a huge help when performing a repetitive task (such as changing a bunch of files one at a time, or making the same edit to a stack of documents). That’s where AppleScript steps in.
AppleScripts are created using Script Editor, a Utilities app. Many OS X apps include support for AppleScript. iWork apps (Numbers, Pages and Keynote) all support AppleScript (but for a brief period the support went missing during last year’s update.)
The AppleScript language is designed to be friendly, so it follows a readable syntax and avoids many traditions found in other programming languages. The great thing is that once you get the basics down, there are thousands of example AppleScript snippets on the web that you can copy to work with your own needs.
Here we’ll show you how to use an AppleScript from iWork & Automation (iworkautomation.com). This script uses three apps (Contacts, Pages and Mail). It takes a group of contacts and creates a customised letter in Pages addressed personally to each person. They’re then turned into PDFs and attached to Mail messages. Lou Hattersley
There are loads of AppleScript snippets on the web that you can use to work with your own needs
Apple Script can look daunting, but it’s easy to pick up and there are free examples of code you can use online.