Take Control of Automating Your Mac (2.0.1) SAMPLE
Total Page:16
File Type:pdf, Size:1020Kb
EBOOK EXTRAS: v2.0.1 Downloads, Updates, Feedback TAKE CONTROL OF AUTOMATING YOUR MAC A friendly guide to finding (or creating) time-saving shortcuts. by JOE KISSELL $15 2ND Click here to buy the full 231-page “Take Control of Automating Your Mac” for only $15! EDITION Table of Contents Read Me First ................................................................. 4 Introduction .................................................................. 7 Automation Quick Start ................................................... 9 The State of Mac Automation ......................................... 11 Develop an Automator’s Mindset ..................................... 15 Use Built-in Automation Features .................................... 26 Automate Your Input Devices ......................................... 52 Automate Text Expansion ............................................... 59 Automate the Finder ..................................................... 66 Supercharge Your Clipboard ........................................... 76 Automate Individual Apps .............................................. 81 Automate Email .......................................................... 102 Automate the Web ...................................................... 113 Automate Backup and Syncing ...................................... 127 Discover macOS Automation Technologies ...................... 140 Use Services for System-wide Shortcuts ........................ 146 Get Started with Automator .......................................... 150 Get Started with AppleScript ........................................ 162 Script the Command Line with Shell Scripts .................... 183 Use Omni Automation .................................................. 189 Use a Macro Utility ...................................................... 195 About This Book ......................................................... 217 Copyright and Fine Print .............................................. 220 Also by Joe Kissell ....................................................... 221 Hazel Coupon ............................................................. 222 Keyboard Maestro Coupon ........................................... 223 2 Click here to buy the full 231-page “Take Control of Automating Your Mac” for only $15! LaunchBar Coupon ...................................................... 224 Nisus Writer Pro Coupon .............................................. 225 Script Debugger Coupon .............................................. 226 TextExpander Coupon ................................................. 227 TextSoap Coupon ........................................................ 228 TypeIt4Me Coupon ...................................................... 229 Typinator Coupon ....................................................... 230 UI Browser Coupon ..................................................... 231 3 Click here to buy the full 231-page “Take Control of Automating Your Mac” for only $15! Read Me First Welcome to Take Control of Automating Your Mac, Second Edition, version 2.0.1, published in January 2018 by alt concepts inc. This book was written by Joe Kissell and edited by Scholle McFarland. This book explores many ways to work faster, increase your efficiency, and have more fun using your Mac by automating common activities. Many of these techniques require no extra software, and nearly all of them are suitable for ordinary users without special technical skills. If you want to share this ebook with a friend, we ask that you do so as you would with a physical book: “lend” it for a quick look, but ask your friend to buy a copy for careful reading or reference. Discounted classroom and Mac user group copies are available. Copyright © 2018, alt concepts inc. All rights reserved. Updates and More You can access extras related to this ebook on the Web (use the link in Ebook Extras, near the end; it’s available only to purchasers). On the ebook’s Take Control Extras page, you can: • Download any available new version of the ebook for free, or buy any subsequent edition at a discount. • Download various formats, including PDF, EPUB, and Mobipocket. (Learn about reading on mobile devices on our Device Advice page.) • Read the ebook’s blog. You may find new tips or information, links to author interviews, and update plans for the ebook. If you bought this ebook from the Take Control Web site, it has been added to your account, where you can download it in other formats and access any future updates. However, if you bought this ebook elsewhere, you can add it to your account manually; see Ebook Extras. 4 Click here to buy the full 231-page “Take Control of Automating Your Mac” for only $15! Basics To review background information that might help you understand this book better, such as finding System Preferences and working with files in the Finder, read Tonya Engst’s book Take Control of Mac Basics. What’s New in the Second Edition Version 2.0 of this book includes hundreds of changes that bring it up to date with recent versions of macOS and third-party automation tools. It expands numerous important topics, removes obsolete text, and adds entirely new material. Here are the highlights: • Added a chapter called The State of Mac Automation, which talks about the present and likely future of automation on the Mac • In the discussion of how to Control Your Mac with Your Voice, added a Use Siri topic • Added a few tools to the Use a macOS Clipboard Utility topic • Added MailButler and MailTags to the list of recommended Mail plug-ins in Automate Apple Mail with Plug-ins • Expanded the discussion of IFTTT and Zapier, two services that take actions based on changing conditions in cloud-connected apps • Covered using iCloud to sync Desktop and Documents folders in Automate Mac-to-Mac Syncing • Split the material on macOS automation tools into five chapters: ‣ Discover macOS Automation Technologies: An overview of the user-level Mac automation tools Apple provides ‣ Use Services for System-wide Shortcuts: Guidance on using and configuring items in the system-wide Services menu 5 Click here to buy the full 231-page “Take Control of Automating Your Mac” for only $15! ‣ Get Started with Automator: An introduction to Apple’s Aut- omator utility, with an expanded set of examples ‣ Get Started with AppleScript: The basics of performing tasks with Apple’s venerable scripting language, now with more in- struction, examples, and tips, plus coverage of how to Use GUI Scripting ‣ Script the Command Line with Shell Scripts: How simple scripts you run in Terminal can automate tasks on your Mac • Added a new chapter, Use Omni Automation, about the JavaScript- based automation capability now built into apps by the Omni Group on both macOS and iOS • Included more examples and details in Control Your Mac with Key- board Maestro • Added Switch Contexts with ControlPlane to explain the basics of this utility that automatically performs actions on your Mac based on user-defined criteria • Added coupons for OmniGraffle, Script Debugger, and UI Browser, and increased the discount on the Nisus Writer Pro Coupon to 25% Note: Version 2.0.1 removed the coupon for OmniGraffle Pro, which had expired. 6 Click here to buy the full 231-page “Take Control of Automating Your Mac” for only $15! Introduction If you’ll forgive the cliché, life is too short. I have long-term goals and dreams that need my attention. And every single day, I have work to do, a family to take care of, books to read, and TV shows to watch. I don’t have time to waste on tedious tasks that my expensive, modern Mac is perfectly capable of doing for me. This book is about taking back your time by automating your Mac, which sounds like a fancy and high-tech undertaking. But in fact, all I mean by “automating” is finding shortcuts—ways to do the same thing, only more quickly and easily, with fewer manual steps. That might be as simple as learning a keyboard shortcut for a common command, or scheduling a task to run at a certain time. You can do more advanced things, too, like using macro utilities or writing AppleScripts, but you may be surprised to find that some of the most powerful and effective automation techniques require the least effort and skill to set up. In many cases, you won’t even need extra software. I want to emphasize that you do not have to be a programmer or computer geek to do most of this stuff. I do mention a few techniques that require above-average technical chops, but I’ve written this book for ordinary—smart but non-technical—readers. On the other hand, if you are a computer geek, I hope you’ll find some ideas here that you can use to make your work even more efficient than it already was. Tip: If you are interested in learning about programming but don’t know where to start, try Hour of Code. Let me share a personal story. There’s a certain bookkeeping task that used to take me about 5 minutes a day. After doing this a few hundred times, I decided that I couldn’t stand it any longer. So I spent a full day working up a very snazzy macro that combined Keyboard Maestro with AppleScript to do the whole task without any intervention at all. 7 Click here to buy the full 231-page “Take Control of Automating Your Mac” for only $15! Now, you may be thinking, “That’s madness! What kind of idiot would spend a whole day automating something that takes just 5 minutes?” Well, this idiot did it to save time. If I spent 8 hours perfecting my macro, that’s equivalent to 5 minutes a day for about 3 months. Which