Applescript: a Beginner's Guide" & Tab & Tab & "Chapter 14"

Total Page:16

File Type:pdf, Size:1020Kb

Applescript: a Beginner's Guide AppleScript: A Beginner’s Guide About the Author Guy Hart-Davis is the author of Mac OS X Leopard QuickSteps, How to Do Everything: iPod, iPhone, & iTunes, HTML, XHTML & CSS QuickSteps, and several other equally fine computer books. About the Technical Editor Greg Kettell is a Windows programmer by day, but by night loves his Mac. Greg has served as an author, contributing author, and/or technical editor for an ever-increasing number of technical books. AppleScript: A Beginner’s Guide Guy Hart-Davis New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto Copyright © 2010 by The McGraw-Hill Companies. All rights reserved. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher. ISBN: 978-0-07-163955-2 MHID: 0-07-163955-1 The material in this eBook also appears in the print version of this title: ISBN: 978-0-07-163954-5, MHID: 0-07-163954-3. All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the benefit of the trademark owner, with no intention of infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps. McGraw-Hill eBooks are available at special quantity discounts to use as premiums and sales promotions, or for use in corporate training programs. To contact a representative please e-mail us at [email protected]. Information has been obtained by McGraw-Hill from sources believed to be reliable. However, because of the possibility of human or mechanical error by our sources, McGraw-Hill, or others, McGraw-Hill does not guarantee the accuracy, adequacy, or completeness of any information and is not responsible for any errors or omissions or the results obtained from the use of such information. TERMS OF USE This is a copyrighted work and The McGraw-Hill Companies, Inc. (“McGraw-Hill”) and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hill’s prior consent. You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right to use the work may be terminated if you fail to comply with these terms. THE WORK IS PROVIDED “AS IS.” McGRAW-HILL AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. McGraw-Hill and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free. Neither McGraw-Hill nor its licensors shall be liable to you or anyone else for any inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting therefrom. McGraw-Hill has no responsibility for the content of any information accessed through the work. Under no circumstances shall McGraw-Hill and/or its licensors be liable for any indirect, incidental, special, punitive, consequential or similar damages that result from the use of or inability to use the work, even if any of them has been advised of the possibility of such damages. This limitation of liability shall apply to any claim or cause whatsoever whether such claim or cause arises in contract, tort or otherwise. This book is dedicated to Teddy, who helped develop some of the sample scripts. This page intentionally left blank Contents at a Glance 1 Grasping the Essentials of AppleScript ................................... 3 2 Up to Speed with AppleScript Editor ..................................... 11 3 Creating Your First Script ................................................ 27 4 Working with Variables, Classes, Operators, and Coercions ............. 61 5 Working with Text, Numbers, and Dates .................................. 81 6 Working with the Finder, Files, and Folders .............................. 101 7 Making Decisions in Your Scripts ......................................... 129 8 Using Dialog Boxes to Get User Input ..................................... 137 9 Repeating Actions in Your Scripts ......................................... 179 10 Debugging and Handling Errors .......................................... 195 vii viii AppleScript: A Beginner’s Guide 11 Running Scripts Automatically ............................................ 219 12 Automating iTunes and iPhoto ............................................ 249 13 Automating Apple Mail ................................................... 271 14 Automating Microsoft Word .............................................. 291 15 Automating Microsoft Excel .............................................. 337 16 Automating Microsoft Entourage ......................................... 377 Index ...................................................................... 411 Contents ACKNOWLEDGMENTS ........................................................... xix INTRODUCTION .................................................................. xxi PART I Getting Started with AppleScript 1 Grasping the Essentials of AppleScript ................................... 3 Knowing What AppleScript Is and What You Can Do with It ........................ 4 What You Can Do with Scripts ................................................ 4 Why AppleScript Is Easy to Learn ............................................. 5 Understanding What Scripts Are .................................................... 5 What a Script Is ............................................................... 5 Where Scripts Are Stored ..................................................... 5 How You Create Scripts ....................................................... 6 How You Run Scripts ......................................................... 6 Understanding Objects, Keywords, Commands, and Properties ...................... 7 What Objects Are ............................................................. 7 What Keywords Are .......................................................... 7 What Commands Are ......................................................... 8 What Properties and Values Are ............................................... 9 ix x AppleScript: A Beginner’s Guide 2 Up to Speed with AppleScript Editor ..................................... 11 Launching AppleScript Editor ...................................................... 12 Meeting the AppleScript Editor Window ............................................ 13 Setting Up AppleScript Editor for Working Comfortably ............................. 16 Choosing General Preferences ................................................. 16 Choosing Editing Preferences ................................................. 18 Choosing Formatting Preferences ............................................. 20 Choosing History Preferences ................................................. 22 Choosing Plug-ins Preferences ................................................ 23 Putting the Script Menu on the Menu Bar in Leopard ................................ 23 Running a Script from the Script Menu .............................................. 25 3 Creating Your First Script ................................................ 27 Opening AppleScript Editor ......................................................... 28 Creating tell Statements ............................................................ 29 Try This: Opening a Finder Window Showing the Documents Folder ................ 30 Saving a Script ..................................................................... 31 Try This: Saving Your Script ........................................................ 31 Creating tell Blocks ................................................................. 32 Creating a tell Block Manually ................................................ 32 Try This: Using a tell Block ......................................................... 32 Using the Tell Application Pop-Up Menu ..................................... 33 Adding Comments to Your Code .................................................... 34 Creating End-of-Line Comments .............................................. 35 Try This: Commenting Out a Line .................................................. 36 Creating Block Comments .................................................... 36 Try This: Creating a Comment Block ............................................... 37 Recording Actions into a Script ..................................................... 37 Try This: Recording Actions: Repositioning and Resizing the Finder Window . 38 Examining the Recorded Code ..................................................... 39 Activating an Application ....................................................
Recommended publications
  • Bbedit 12.6.3 User Manual
    User Manual BBEdit™ Professional Code and Text Editor for the Macintosh Bare Bones Software, Inc. ™ BBEdit 12.6.3 Product Design Jim Correia, Rich Siegel, Steve Kalkwarf, Patrick Woolsey Product Engineering Jim Correia, Seth Dillingham, Matt Henderson, Jon Hueras, Steve Kalkwarf, Rich Siegel, Steve Sisak Engineers Emeritus Chris Borton, Tom Emerson, Pete Gontier, Jamie McCarthy, John Norstad, Jon Pugh, Mark Romano, Eric Slosser, Rob Vaterlaus Documentation Fritz Anderson, Philip Borenstein, Stephen Chernicoff, John Gruber, Jeff Mattson, Jerry Kindall, Caroline Rose, Allan Rouselle, Rich Siegel, Vicky Wong, Patrick Woolsey Additional Engineering Polaschek Computing Icon Design Bryan Bell Factory Text Color Schemes Luke Andrews Packaging Design Ultra Maroon Design PHP keyword lists Contributed by Ted Stresen-Reuter cmark ©John MacFarlane. Used under license. Part of the CommonMark project LibNcFTP Used under license from and copyright © 1996-2010 Mike Gleason & NcFTP Software Exuberant ctags ©1996-2004 Darren Hiebert http://ctags.sourceforge.net/ PCRE Library Written by Philip Hazel and ©1997-2014 University of Cambridge, England Info-ZIP Library ©1990-2009 Info-ZIP. Used under license. Quicksilver string ranking Adapted from available sources and used under Apache License 2.0 terms NSTimer+Blocks ©2011 Random Ideas, LLC. Used under license. LetsMove Written by Andy Kim; adapted from source. BBEdit and the BBEdit User Manual are copyright ©1992-2019 Bare Bones Software, Inc. All rights reserved. Produced/published in USA. Bare Bones Software, Inc. 73 Princeton Street, Suite 206 North Chelmsford, MA 01863 USA (978) 251-0500 main (978) 251-0525 fax http://www.barebones.com/ Sales & customer service: [email protected] Technical support: [email protected] BBEdit and “It Doesn’t Suck” are registered trademarks of Bare Bones Software, Inc.
    [Show full text]
  • Chapter 1. Origins of Mac OS X
    1 Chapter 1. Origins of Mac OS X "Most ideas come from previous ideas." Alan Curtis Kay The Mac OS X operating system represents a rather successful coming together of paradigms, ideologies, and technologies that have often resisted each other in the past. A good example is the cordial relationship that exists between the command-line and graphical interfaces in Mac OS X. The system is a result of the trials and tribulations of Apple and NeXT, as well as their user and developer communities. Mac OS X exemplifies how a capable system can result from the direct or indirect efforts of corporations, academic and research communities, the Open Source and Free Software movements, and, of course, individuals. Apple has been around since 1976, and many accounts of its history have been told. If the story of Apple as a company is fascinating, so is the technical history of Apple's operating systems. In this chapter,[1] we will trace the history of Mac OS X, discussing several technologies whose confluence eventually led to the modern-day Apple operating system. [1] This book's accompanying web site (www.osxbook.com) provides a more detailed technical history of all of Apple's operating systems. 1 2 2 1 1.1. Apple's Quest for the[2] Operating System [2] Whereas the word "the" is used here to designate prominence and desirability, it is an interesting coincidence that "THE" was the name of a multiprogramming system described by Edsger W. Dijkstra in a 1968 paper. It was March 1988. The Macintosh had been around for four years.
    [Show full text]
  • Bbedit User Manual Are Copyright ©1992-2018 Bare Bones Software, Inc
    User Manual BBEdit™ Professional Code and Text Editor for the Macintosh Bare Bones Software, Inc. ™ BBEdit 12.5 Product Design Jim Correia, Rich Siegel, Steve Kalkwarf, Patrick Woolsey Product Engineering Jim Correia, Seth Dillingham, Matt Henderson, Jon Hueras, Steve Kalkwarf, Rich Siegel, Steve Sisak Engineers Emeritus Chris Borton, Tom Emerson, Pete Gontier, Jamie McCarthy, John Norstad, Jon Pugh, Mark Romano, Eric Slosser, Rob Vaterlaus Documentation Fritz Anderson, Philip Borenstein, Stephen Chernicoff, John Gruber, Jeff Mattson, Jerry Kindall, Caroline Rose, Allan Rouselle, Rich Siegel, Vicky Wong, Patrick Woolsey Additional Engineering Polaschek Computing Icon Design Bryan Bell Factory Text Color Schemes Luke Andrews Packaging Design Ultra Maroon Design PHP keyword lists Contributed by Ted Stresen-Reuter cmark ©John MacFarlane. Used under license. Part of the CommonMark project LibNcFTP Used under license from and copyright © 1996-2010 Mike Gleason & NcFTP Software Exuberant ctags ©1996-2004 Darren Hiebert http://ctags.sourceforge.net/ PCRE Library Written by Philip Hazel and ©1997-2014 University of Cambridge, England Info-ZIP Library ©1990-2009 Info-ZIP. Used under license. Quicksilver string ranking Adapted from available sources and used under Apache License 2.0 terms NSTimer+Blocks ©2011 Random Ideas, LLC. Used under license. LetsMove Written by Andy Kim; adapted from source. BBEdit and the BBEdit User Manual are copyright ©1992-2018 Bare Bones Software, Inc. All rights reserved. Produced/published in USA. Bare Bones Software, Inc. 73 Princeton Street, Suite 206 North Chelmsford, MA 01863 USA (978) 251-0500 main (978) 251-0525 fax http://www.barebones.com/ Sales & customer service: [email protected] Technical support: [email protected] BBEdit and “It Doesn’t Suck” are registered trademarks of Bare Bones Software, Inc.
    [Show full text]
  • Special Characters A
    453 Index ■ ~/Library/Safari/WebpageIcons.db file, Special Characters 112 $(pwd) command, 89–90 ~/Library/Saved Searches directory, 105 $PWD variable, 90 ~/Library/Services directory, 422–423 % (Execute As AppleScript) menu option, ~/Library/Workflow/Applications/Folder 379 Actions folder, 424 ~/ directory, 6, 231 ~/Library/Workflows/Applications/Image ~/bin directory, 6, 64, 291 Capture folder, 426 ~/Documents directory, 281, 290 ~/Movies directory, 323, 348 ~/Documents/Knox directory, 255 ~/Music directory, 108, 323 ~/Downloads option, 221, 225 ~/Music/Automatically Add To iTunes ~/Downloads/Convert For iPhone folder, folder, 424 423–424 ~/Pictures directory, 281 ~/Downloads/MacUpdate ~/.s3conf directory, 291 Desktop/MacUpdate Desktop ~/ted directory, 231 2010-02-20 directory, 16 ~/Templates directory, 60 ~/Downloads/To Read folder, 425 ~/Templates folder, 62 ~/Dropbox directory, 278–282 Torrent program, 236 ~/Library folder, 28 1Password, 31, 135, 239–250 ~/Library/Application 1Password extension button, 247–248 Support/Evom/ffmpeg directory, 1Password.agilekeychain file, 249 338 1PasswordAnywhere tool, 249 ~/Library/Application 1Password.html file, 250 Support/Fluid/SSB/[Your 2D Black option, 52 SSB]/Userstyles/ directory, 190 2D With Transparency Effect option, 52 ~/Library/Application Support/TypeIt4Me/ 2-dimensional, Dock, 52 directory, 376 7digital Music Store extension, 332 ~/Library/Caches/com.apple.Safari/Webp age Previews directory, 115 ~/Library/Internet Plug-Ins directory, 137 ■A ~/Library/LaunchAgents directory, 429, 432
    [Show full text]
  • Opencore Reference Manual (0.5.9::::::::: 0.6.0) [2020.07.05]
    OpenCore Reference Manual (0.5.90.6.0::::::::: ) [2020.07.05] Copyright ©2018-2020 vit9696 1 Introduction This document provides information on OpenCore user configuration file format used to setup the correct functioning of macOS operating system. It is to be read as the official clarification of expected OpenCore behaviour. All deviations, if found in published OpenCore releases, shall be considered documentation or implementation bugs, and are requested to be reported through Acidanthera Bugtracker. ::::::Errata :::::sheet::is::::::::available:::in OpenCorePkg repository.: This document is structured as a specification, and is not meant to provide a step by step algorithm for configuring end-user board support package (BSP). The intended audience of the document are programmers and engineers with basic understanding of macOS internals and UEFI functioning. For these reasons this document is available exclusively in English, and all other sources or translations of this document are unofficial and may contain errors. Third-party articles, utilities, books, and alike may be more useful for a wider audience as they could provide guide-like material. However, they are prone to their authors’ preferences, tastes, this document misinterpretation, and essential obsolescence. In case you use these sources, for example, Dortania’s OpenCore Desktop Guide and related material, please ensure to follow this document for every made decision and judge its consequences. Be warned that regardless of the sources used you are required to fully understand every dedicated OpenCore configuration option and concept prior to reporting any issues in Acidanthera Bugtracker. 1.1 Generic Terms • plist — Subset of ASCII Property List format written in XML, also know as XML plist format version 1.
    [Show full text]
  • Programming Mac OS X: a GUIDE for UNIX DEVELOPERS
    Programming Mac OS X: A GUIDE FOR UNIX DEVELOPERS KEVIN O’MALLEY MANNING Programming Mac OS X Programming Mac OS X A GUIDE FOR UNIX DEVELOPERS KEVIN O’MALLEY MANNING Greenwich (74° w. long.) For electronic information and ordering of this and other Manning books, go to www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact: Special Sales Department Manning Publications Co. 209 Bruce Park Avenue Fax: (203) 661-9018 Greenwich, CT 06830 email: [email protected] ©2003 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books they publish printed on acid-free paper, and we exert our best efforts to that end. Manning Publications Co. Copyeditor: Tiffany Taylor 209 Bruce Park Avenue Typesetter: Denis Dalinnik Greenwich, CT 06830 Cover designer: Leslie Haimes ISBN 1-930110-85-5 Printed in the United States of America 12345678910–VHG–05 040302 brief contents PART 1OVERVIEW ............................................................................. 1 1 ■ Welcome to Mac OS X 3 2 ■ Navigating and using Mac OS X 27 PART 2TOOLS ..................................................................................
    [Show full text]
  • Mac OS X Desktop.Pdf
    Apple Training Series Mac OS X Support Essentials v10.6 Kevin M. White Apple Training Series: Mac OS X Support Essentials v10.6 Kevin M. White Copyright © 2010 by Apple Inc. Published by Peachpit Press. For information on Peachpit Press books, contact: Peachpit Press 1249 Eighth Street Berkeley, CA 94710 510/524-2178 510/524-2221 (fax) www.peachpit.com To report errors, please send a note to [email protected]. Peachpit Press is a division of Pearson Education. Apple Training Series Editor: Rebecca Freed Production Editors: Danielle Foster, Becky Winter Copyeditor: Peggy Nauts Tech Editor: Gordon Davisson Apple Editor: Shane Ross Proofreader: Suzie Nasol Compositor: Danielle Foster Indexer: Valerie Perry Cover design: Mimi Heft Cover illustrator: Kent Oberheu Notice of Rights All rights reserved. No part of this book may be reproduced or transmitted in any form by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. For infor- mation on getting permission for reprints and excerpts, contact [email protected]. Notice of Liability The information in this book is distributed on an “As Is” basis without warranty. While every precaution has been taken in the preparation of the book, neither the author nor Peachpit shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the instructions contained in this book or by the computer software and hardware products described in it. Trademarks Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks.
    [Show full text]
  • Macintosh: the Any OS for Schools
    Presenter Raymond G. Harder Pomona CUE Conference May 20,2006 Macintosh: The Any OS for Schools Apple’s OS 10.4 now and 10.5 soon (August, 2006) on the newest Macs running on an Intel Core Duo processor give schools an ideal platform for students or administrators. These computers now have all the advantages of 21 years of Windows developments, 22 years of Apple’s Macintosh developments, and over 30 years of Unix developments on one piece of hardware at a reasonable price point. Schools which require either or both Macintosh or Windows Operating systems for their curricular or administrative needs do not have to maintain separate labs. One piece of hardware can be booted to either Macintosh or Windows natively and without any emulation. All Macintosh OS X or Windows XP software will run on these new machines. Besides the ability to run Windows and OS X software natively, these machines are the perfect platform to run Apple’s new iLife and iWorks suites of software which provide exciting new tools for teachers and students to create Websites, documents, and multi- media creations. The built-in iSight camera and microphone gives these machines the ability to do video and audio broadcasting as well as to create movies for use in Blogs, PodCasts, and DVD based movies. This presentation was an overview of a few of these new tools. During this presentation the following was done live: 1. Ran Windows natively. 2. Created a Website in minutes using a digital camera and pictures of the audience. 3. Uploaded the Web files to a file server on the Internet in seconds by double clicking to launch a two line Unix script.
    [Show full text]
  • Houdahspot Help EN
    HoudahSpot 5 User Guide houdah.com/houdahSpot 1. Introduction 4 2. What’s new in HoudahSpot 5 4 2.1. Folding Text Preview 5 2.2. Recent search attributes & values, locations, and columns 5 2.3. Quicker criteria setup 5 2.4. Arrange search results by kind, date, file size, or application 6 2.5. Compact Mode 6 2.6. Vertical layout 6 2.7. Enhanced grid view 6 2.8. Faster file tagging 7 2.9. Fewer windows 7 3. HoudahSpot and the Spotlight Index 7 3.1. macOS 10.15 Catalina 7 4. Workflow 8 4.1. The Search Field 8 4.2. Refine Search 9 4.2.1. Criteria Attributes 10 4.2.2. Using the Asterisk (*) Wildcard 14 4.2.3. Combining Criteria: ALL / ANY / NONE Groups 14 4.2.4. Find by Example 15 4.2.5. Snippets 16 4.2.6. Temporarily Disable Criteria Rows 16 4.3. Search Locations 17 4.3.1. Exclude Locations 19 4.4. Limit 19 4.5. Start / Stop Button 20 4.6. Results 20 4.6.1. Filter 22 4.6.2. File Actions 22 4.6.3. Details: File Info, Quick Look, Text Preview 24 4.6.4. Saving Search Results as Text Files 26 5. Customizing Default & Using Templates 27 HoudahSpot 5: User Guide 2 5.1. Saving Searches 27 5.2. Save as Default 27 5.3. Templates 28 5.4. Export as Finder Smart Folder 28 6. View Options 28 6.1. Search, Results & Details Pane 28 6.2. The Sidebar 30 6.3.
    [Show full text]
  • Eaglefiler 1.9.3 Manual
    EagleFiler 1.9.3 Manual C-Command Software c-command.com February 17, 2021 Contents 1 Introduction 6 1.1 Importing Is a Snap.........................................6 1.2 Familiar Mail-like Interface.....................................7 1.3 Search Everything..........................................8 1.4 The Library Is Open.........................................9 1.5 Reliable Data Storage........................................ 10 1.6 Add Tags and Notes......................................... 11 1.7 Speed Up and Simplify Your Other Applications......................... 14 1.8 Multiple Libraries.......................................... 14 1.9 Feature List.............................................. 14 2 Installing and Updating 18 2.1 Requirements............................................. 18 2.2 Installing EagleFiler......................................... 18 2.3 Updating From a Previous Version................................. 18 2.4 Reinstalling a Fresh Copy...................................... 19 2.5 Uninstalling EagleFiler........................................ 20 2.6 Security & Privacy Access...................................... 20 3 Using EagleFiler 23 3.1 Basics................................................. 23 3.2 Library Folders............................................ 24 3.3 What Can Be Imported....................................... 28 3.4 Ways to Import............................................ 29 3.4.1 Applications That Support Capture............................ 30 3.4.2 Importing Existing Files..................................
    [Show full text]
  • Characters and Numerics A
    1019 Index ■ > (is greater than) operator, 151, 183, 221, Characters and 252, 372, 382, 869 Numerics ° (degree sign) character, 501 – (en dash) character, 501 16-bit UCS/Unicode Transformation Format - (negation) operator, 150, 217, 219, 224, (UTF-16)encoded files, 497–499 258, 379–380, 386 " (double quote character), 145, 163, 170– - (subtraction) operator, 149–150, 217, 219, 172, 263, 311 224–225, 254–255, 380, 385 1st keyword, 131 - button, Folder Actions Setup utility, 722 2nd keyword, 131 != symbol, 222 3rd keyword, 131 % symbol, 889 24U Appearance, 689 & operator, concatenating strings with, 952 32-bit, scripting additions, 686 (* symbol, 48 444 mode, 891 * (multiplication) operator, 150, 217, 224, 8-bit UCS/Unicode Transformation Format 380 (UTF-8) encoded files, 493, 497, *) symbol, 48 501, 871, 877 / (division) operator, 151, 217, 224, 380, 385 / (slash character), 193, 473 /Library/Scripts/ folder, 73–74, 310 ■ A : (colon character), 472 a reference to operator, 328, 347, 379, 388, ? operator, 372 479–480 \ (backslash character), 171 AAC (Advanced Audio Coding) format, \b construct, 703 Apple, 757 \n (line feed) character, 172–173, 179 About Downloads.pdf file, 475 \r (return) characters, 172–173, 486 about label, 515 \t (tab) character, 172–173, 791 above label, 515 \w modifier, 703 abs_num command, 219 ^ (exponent) operator, 151, 216–217, 220– abs_num handler, 219 221, 224, 380 absolute path, 875 + (addition) operator, 150, 217, 224–225, absolute reference, 96 254, 380, 385 abstract base class, 564 + button, Folder Action
    [Show full text]
  • OS X Yosemite
    OS X Yosemite Core Technologies Overview October 2014 Core Technologies Overview 2 OS X Yosemite Contents Page 4 Introduction Page 5 System Startup BootROM EFI Kernel Drivers Initialization Address Space Layout Randomization (ASLR) Compressed Memory Power Efficiency App Nap Timer Coalescing Task-Level Scheduling Page 10 Disk Layout Partition Scheme Core Storage File Systems Page 13 Process Control Launchd Loginwindow Grand Central Dispatch Sandboxing Gatekeeper XPC Page 20 Network Access Ethernet Wi-Fi Multihoming IPv6 IP over Thunderbolt Network File Systems Access Control Lists Directory Services Remote Access Bonjour Core Technologies Overview 3 OS X Yosemite Page 27 Document Lifecycle Auto Save Automatic Versions Document Management Version Management Continuity Extensions iCloud Storage Page 31 Data Management Spotlight Time Machine Page 34 Developer Tools Xcode Swift LLVM Instruments Accelerate Automation WebKit Page 41 For More Information Core Technologies Overview 4 OS X Yosemite Introduction With more than 83 million users—consumers, scientists, animators, developers, and system administrators—OS X is the most widely used UNIX® desktop operating system. In addition, OS X is the only UNIX environment that natively runs Microsoft Office, Adobe Photoshop, and thousands of other consumer applications—all side by side with traditional command-line UNIX applications. Tight integration with hardware— from the sleek MacBook Air to the powerful Mac Pro—makes OS X the platform of choice for an emerging generation of power users. This document explores the powerful industry standards and breakthrough innovations in the core technologies that power Apple’s industry-leading user experiences. We walk you through the entire software stack, from firmware and kernel to iCloud and developer tools, to help you understand the many things OS X does for you every time you use your Mac.
    [Show full text]