O'reilly Pub Date: June 2001

Total Page:16

File Type:pdf, Size:1020Kb

O'reilly Pub Date: June 2001 Click here to show toolbars of the Web Online Help System: show toolbars AppleScript in a Nutshell By Bruce W. Perry Publisher: O'Reilly Pub Date: June 2001 ISBN: 1-56592-841-5 Table of Pages: 526 • Contents Slots: 1 • Index • Reviews AppleScript in a Nutshell is the first complete reference to AppleScript, the • Examples popular programming language that gives both power users and sophisticated enterprise customers the important ability to automate repetitive tasks and Reader • customize applications. AppleScript in a Nutshell is a high-end handbook at a Reviews low-end price--an essential desktop reference that puts the full power of this • Errata user-friendly programming language into every AppleScript user's hands. This HTML Help has been published using the chm2web software. Click here to show toolbars of the Web Online Help System: show toolbars AppleScript in a Nutshell By Bruce W. Perry Publisher: O'Reilly Pub Date: June 2001 ISBN: 1-56592-841-5 Table of Pages: 526 • Contents Slots: 1 • Index • Reviews • Examples Reader • Reviews • Errata Copyright Preface Organization of This Book Conventions Used in This Book How to Contact Us Acknowledgments Part I: Introduction to AppleScript Chapter 1. AppleScript: An Introduction Section 1.1. How Is AppleScript Used? Section 1.2. Apple Events Section 1.3. Using Script Runner with OS X Section 1.4. Using OSA Menu with OS 9 Section 1.5. Checking Your AppleScript Version Section 1.6. Diving In Chapter 2. Using Script Editor with OS 9 and OS X Section 2.1. Script Editor Controls/Commands Section 2.2. Scripting the Script Editor Part II: AppleScript Language Reference Chapter 3. Data Types alias boolean class constant data date file specification integer international text list number real record reference RGB color string Styled Clipboard Text Styled Text text Unicode Text Unit of Measurement Classes Chapter 4. Operators & ( ) * + - / ÷ div < <= = > >= ^ [a] reference to and as begin[s] with contains does not contain does not equal ends with is contained by is not contained by m od not or Chapter 5. Reference Forms after back before beginning first, second, third, fourth, etc. every every ... from ... to ... id last middle name some whose Chapter 6. Variables and Constants Section 6.1. Variables Section 6.2. Constants and Predefined Variables Chapter 7. Flow-Control Statements considering [but ignoring] end [considering] continue error exit [repeat] if simple statement if [then] [else if] [else] end [if] ignoring [but considering] end [ignoring] repeat end [repeat] repeat until end [repeat] repeat while end [repeat] repeat with {loop variable} from {integer} to {integer}[by stepVal] end [repeat] repeat with {loop variable} in {list} end [repeat] repeat {integer} times end [repeat] return [return value] tell simple statement tell end [tell] try [on error] [number | from | partial result | to] end[error | try] using terms from end [using terms from] with timeout [of] {integer} second[s] end [timeout] with transaction [session object] end [transaction] Chapter 8. Subroutines Section 8.1. Subroutines with Positional Parameters Section 8.2. Subroutines with Labeled Parameters Chapter 9. Script Objects and Libraries Script Objects Libraries Part III: Scripting Mac OS 9 Applications Chapter 10. Apple Guide and Help Viewer Apple Guide Help Viewer Chapter 11. Apple System Profiler Apple System Profiler Chapter 12. Keychain Scripting and Apple Verifier Keychain Scripting Apple Verifier Chapter 13. Desktop Printer Manager Desktop Print Manager Chapter 14. Mac OS 9 Finder Commands Section 14.1. Example Finder Scripts Chapter 15. Mac OS 9 Finder Classes Finder Classes Chapter 16. Network Setup Scripting Network Setup Scripting Chapter 17. Scripting Sherlock 2 Sherlock 2 Chapter 18. URL Access Scripting URL Access Scripting Part IV: Scripting Mac OS 9 Control Panels and Extensions Chapter 19. Appearance Control Panel Appearance Control Panel Chapter 20. Apple Data Detectors Extension Apple Data Detectors Chapter 21. Apple Menu Options Control Panel Apple Menu Options Chapter 22. Application Switcher Extension Application Switcher Chapter 23. ColorSync Extension ColorSync Chapter 24. File Exchange Control Panel File Exchange Chapter 25. File Sharing Control Panel File Sharing Chapter 26. Folder Actions Extension Folder Actions Chapter 27. FontSync Control Panel and Extension FontSync Control Panel FontSync Extension Chapter 28. Location Manager Control Panel Location Manager Chapter 29. Memory and Mouse Control Panels Memory Control Panel Mouse Control Panel Chapter 30. Speech Listener and SpeakableItems Extension Speech Listener Application SpeakableItems Extension Embedded Speech Commands Chapter 31. Web Sharing Control Panel Part V: Scripting the Mac OS X System Chapter 32. Scripting the OS X Desktop Section 32.1. Working with Files, Folders, Disks, and Windows in OS X Chapter 33. Scripting Mail Section 33.1. Setting Up an Email Message Section 33.2. Exploring the Mail Application Object Section 33.3. Getting Information about an Email Account Chapter 34. Executing Scripts with the Terminal App osacompile osalang osascript Chapter 35. Scripting TextEdit TextEdit Part VI: Appendixes Appendix A. Standard Scripting Additions Standard Additions Standard Additions Appendix B. AppleScript Resources Section B.1. Apple Computer AppleScript URLs Section B.2. AppleScript FAQs, Mailing Lists, and Tutorials Section B.3. Macintosh Scripting Sites Section B.4. Commercial AppleScript Development Environments Section B.5. Freeware AppleScript Development Environments Colophon Index This HTML Help has been published using the chm2web software. Click here to show toolbars of the Web Online Help System: show toolbars Copyright © 2002 O'Reilly & Associates, Inc. All rights reserved. Printed in the United States of America. Published by O'Reilly & Associates, Inc., 101 Morris Street, Sebastopol, CA 95472. Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly & Associates, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O'Reilly & Associates, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. The association of the image of a Boston terrier and the topic of AppleScript is a trademark of O'Reilly & Associates, Inc. Apple Computer, Inc. boldly combined open source technologies with its own programming efforts to create Mac OS X, one of the most versatile and stable operating systems now available. In the same spirit, Apple has joined forces with O'Reilly & Associates to bring you an indispensable collection of technical publications. The ADC logo indicates that the book has been technically reviewed by Apple engineers and is recommended by the Apple Developer Connection. Apple, Macintosh, AppleScript, Mac OS, and Mac OS X are registered trademarks of Apple, Inc. While every precaution has been taken in the preparation of this book, the publisher assumes no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein. This HTML Help has been published using the chm2web software. Click here to show toolbars of the Web Online Help System: show toolbars [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Y] This HTML Help has been published using the chm2web software. Click here to show toolbars of the Web Online Help System: show toolbars Preface AppleScript continues to evolve on Mac OS 9 and Mac OS X as the ultimate scripting tool for the Macintosh. AppleScript's power to automate the operating system and complex applications such as graphics, desktop-publishing, and database programs, as well as a friendly English language dialect that helps ambitious scripters get up to speed quickly with their own applets, is not matched by any other platform's programming language. Yet, only a small percentage of Macintosh users are even aware that AppleScript is installed with their operating system. Those who are aware of AppleScript's presence on their machine often do not take full advantage of this tool to automate their daily computing activities, both on their local machine and over the Internet. Who should and can use AppleScript? The following users come to mind right away: system administrators who are automating tasks with networks and applications; web and graphics professionals who want to control the development of web sites and publications; scientists, mathematicians, and engineers who require applets to make calculations and automate their own software tools, as well as day-to-day programmers and students who are designing and prototyping new programs. Not to mention everday users who want to automate their own computing tasks, such as file and folder backups. If you are on a Macintosh, then you should be putting AppleScript to work for you. The purpose of this book is primarily three-fold: 1. Describe AppleScript and its tools (Part I) and provide a core language reference (Part II) that all users can keep next to their computers as they write new scripts. 2. Provide detailed descriptions, examples, and reference information on how to script the numerous system-level programs on Mac OS 9 ( Part III and Part IV) and Mac OS X (Part V), such as the Finder on both OS versions, Sherlock, and Network Setup Scripting. 3. Give scripters general insight on how to approach the scripting of several programs that can be automated by AppleScript, such as Adobe Illustrator and Photoshop, FileMaker Pro, QuarkXPress, SoundJam MP, and OutLook Express. The mantra is, study the "application class" in the program's AppleScript dictionary and you'll be up and running with scripting that program before you know it. (Chapter 1 discusses the application class in general terms; while the application classes of all the various system components are described in detail throughout the book.) Hopefully, this book will help reveal AppleScript to more Macintosh users, thus providing them with another outlet for creativity and productivity.
Recommended publications
  • Tinkertool System 7 Reference Manual Ii
    Documentation 0642-1075/2 TinkerTool System 7 Reference Manual ii Version 7.5, August 24, 2021. US-English edition. MBS Documentation 0642-1075/2 © Copyright 2003 – 2021 by Marcel Bresink Software-Systeme Marcel Bresink Software-Systeme Ringstr. 21 56630 Kretz Germany All rights reserved. No part of this publication may be redistributed, translated in other languages, or transmitted, in any form or by any means, electronic, mechanical, recording, or otherwise, without the prior written permission of the publisher. This publication may contain examples of data used in daily business operations. To illustrate them as completely as possible, the examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental. This publication could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. The publisher may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice. Make sure that you are using the correct edition of the publication for the level of the product. The version number can be found at the top of this page. Apple, macOS, iCloud, and FireWire are registered trademarks of Apple Inc. Intel is a registered trademark of Intel Corporation. UNIX is a registered trademark of The Open Group. Broadcom is a registered trademark of Broadcom, Inc. Amazon Web Services is a registered trademark of Amazon.com, Inc.
    [Show full text]
  • Suitcase Fusion 8 Getting Started
    Copyright © 2014–2018 Celartem, Inc., doing business as Extensis. This document and the software described in it are copyrighted with all rights reserved. This document or the software described may not be copied, in whole or part, without the written consent of Extensis, except in the normal use of the software, or to make a backup copy of the software. This exception does not allow copies to be made for others. Licensed under U.S. patents issued and pending. Celartem, Extensis, LizardTech, MrSID, NetPublish, Portfolio, Portfolio Flow, Portfolio NetPublish, Portfolio Server, Suitcase Fusion, Type Server, TurboSync, TeamSync, and Universal Type Server are registered trademarks of Celartem, Inc. The Celartem logo, Extensis logos, LizardTech logos, Extensis Portfolio, Font Sense, Font Vault, FontLink, QuickComp, QuickFind, QuickMatch, QuickType, Suitcase, Suitcase Attaché, Universal Type, Universal Type Client, and Universal Type Core are trademarks of Celartem, Inc. Adobe, Acrobat, After Effects, Creative Cloud, Creative Suite, Illustrator, InCopy, InDesign, Photoshop, PostScript, Typekit and XMP are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. Apache Tika, Apache Tomcat and Tomcat are trademarks of the Apache Software Foundation. Apple, Bonjour, the Bonjour logo, Finder, iBooks, iPhone, Mac, the Mac logo, Mac OS, OS X, Safari, and TrueType are trademarks of Apple Inc., registered in the U.S. and other countries. macOS is a trademark of Apple Inc. App Store is a service mark of Apple Inc. IOS is a trademark or registered trademark of Cisco in the U.S. and other countries and is used under license. Elasticsearch is a trademark of Elasticsearch BV, registered in the U.S.
    [Show full text]
  • Designing PCI Cards and Drivers for Power Macintosh Computers
    Designing PCI Cards and Drivers for Power Macintosh Computers Revised Edition Revised 3/26/99 Technical Publications © Apple Computer, Inc. 1999 Apple Computer, Inc. Adobe, Acrobat, and PostScript are Even though Apple has reviewed this © 1995, 1996 , 1999 Apple Computer, trademarks of Adobe Systems manual, APPLE MAKES NO Inc. All rights reserved. Incorporated or its subsidiaries and WARRANTY OR REPRESENTATION, EITHER EXPRESS OR IMPLIED, WITH No part of this publication may be may be registered in certain RESPECT TO THIS MANUAL, ITS reproduced, stored in a retrieval jurisdictions. QUALITY, ACCURACY, system, or transmitted, in any form America Online is a service mark of MERCHANTABILITY, OR FITNESS or by any means, mechanical, Quantum Computer Services, Inc. FOR A PARTICULAR PURPOSE. AS A electronic, photocopying, recording, Code Warrior is a trademark of RESULT, THIS MANUAL IS SOLD “AS or otherwise, without prior written Metrowerks. IS,” AND YOU, THE PURCHASER, ARE permission of Apple Computer, Inc., CompuServe is a registered ASSUMING THE ENTIRE RISK AS TO except to make a backup copy of any trademark of CompuServe, Inc. ITS QUALITY AND ACCURACY. documentation provided on Ethernet is a registered trademark of CD-ROM. IN NO EVENT WILL APPLE BE LIABLE Xerox Corporation. The Apple logo is a trademark of FOR DIRECT, INDIRECT, SPECIAL, FrameMaker is a registered Apple Computer, Inc. INCIDENTAL, OR CONSEQUENTIAL trademark of Frame Technology Use of the “keyboard” Apple logo DAMAGES RESULTING FROM ANY Corporation. (Option-Shift-K) for commercial DEFECT OR INACCURACY IN THIS purposes without the prior written Helvetica and Palatino are registered MANUAL, even if advised of the consent of Apple may constitute trademarks of Linotype-Hell AG possibility of such damages.
    [Show full text]
  • Suitcase Fusion User Guide
    Legal notices Copyright © 2014–2021 Celartem, Inc., doing business as Extensis. This document and the software described in it are copyrighted with all rights reserved. This document or the software described may not be copied, in whole or part, without the written consent of Extensis, except in the normal use of the software, or to make a backup copy of the software. This exception does not allow copies to be made for others. Licensed under U.S. patents issued and pending. Celartem, Extensis, MrSID, NetPublish, Portfolio Flow, Portfolio NetPublish, Portfolio Server, Suitcase Fusion, Type Server, TurboSync, TeamSync, and Universal Type Server are registered trademarks of Celartem, Inc. The Celartem logo, Extensis logos, Extensis Portfolio, Font Sense, Font Vault, FontLink, QuickFind, QuickMatch, QuickType, Suitcase, Suitcase Attaché, Universal Type, Universal Type Client, and Universal Type Core are trademarks of Celartem, Inc. Adobe, Acrobat, After Effects, Creative Cloud, Illustrator, InCopy, InDesign, Photoshop, PostScript, and XMP are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. Apache Tika, Apache Tomcat and Tomcat are trademarks of the Apache Software Foundation. Apple, Bonjour, the Bonjour logo, Finder, iPhone, Mac, the Mac logo, Mac OS, OS X, Safari, and TrueType are trademarks of Apple Inc., registered in the U.S. and other countries. macOS is a trademark of Apple Inc. App Store is a service mark of Apple Inc. IOS is a trademark or registered trademark of Cisco in the U.S. and other countries and is used under license. Elasticsearch is a trademark of Elasticsearch BV, registered in the U.S.
    [Show full text]
  • The Open Scripting Architecture: Automating, Integrating, and Customizing Applications
    The Open Scripting Architecture: Automating, Integrating, and Customizing Applications Unpublished manuscript, 1993 William R. Cook Warren H. Harris Apple Computer Apple Computer Research Topic areas: Language design and implementation, tools and environments, components and frameworks, concurrent and distributed systems, databases and persistence. Abstract The Open Scripting Architecture combines aspects of object-oriented programming, distributed computation, database queries, and dynamic languages into a powerful and practical system for automation, integration, and customization of applications and system services. Applications are integrated together with distributed messaging. The messages operate upon user-level application objects, like windows and spreadsheet cells that are identified by queries over properties and document containment structure. A general-purpose scripting language automates message sending and handling, and supports persistence and mobile objects. Applications call on scripting services to customize the behavior of their objects through a generic script management API. 1 Introduction The Open Scripting Architecture (OSA) is a comprehensive infrastructure for automating complex or repetitive tasks, integrating distributed applications and system services, and customizing application behavior. These end-user benefits are supported by a synergistic combination of technologies: distributed messaging and referencing of application objects, object-oriented scripting languages, and script development and management tools. Object-oriented concepts are used throughout the architecture, in the scripting language, the system, and the applications. The OSA is unique in several respects. First, it decouples the clients of scripting services (applications) from the providers of those services (language processors like AppleScript™). This decoupling allows for uniform scriptability across all applications in the same way a graphics toolbox provides a uniform GUI.
    [Show full text]
  • OS 8.1 Emergency Handbook 1998.Pdf
    Emergency Handbook Includes troubleshooting, hard disk repair, and software installation information tl Apple Computer, Inc. © 1998 Apple Computer, Inc. All rights rcse tvcd. l!nder the copyright laws, this manual ma~· nm be copied. in whole or in pan, without the written consent of Apple. Your rights to the software are governed by the accom pan)~ng software license agreement. The Apple logo is a trademark of Apple Computer, Inc., registered in the U.S. and other countries. Use of the "keyboord" Apple logo (Option·Shift·K) for commercial purposes without the prior written consent of Apple may constitute trademark infringement and unfair competition in 1~olation of federal and state laws. Every effon has been made to ensure that the information in this manual is accurate. Apple is not responsible for printing or clerical errors. Apple Computer, Inc. I Infinite Loop Cupertino, CA 95014·2084 408·996·10 I0 http://www.apple.com Apple, the 1\pple logo, AppleShare, AppleTalk, l.aserWriter, LocaiTalk, Mac, the Mac OS logo, Macintosh, PowerBook, Power Macimosh, Quick Draw, and Quick'l'imc are trademarks of Apple Computer, Inc., registered in the U.S. and other countries. 1\ppleCD, At Ease, Disk First Aid, Extensions Manager, Finder, Foreign File Access, and Macintosh PC r~xchange are trademarks of Apple Computer, Inc. ClarisWorks is a trademark of Claris Corporation, registered in the U.S. and other countries. PostScript is a trademark of Adobe S)rstems Incorporated or its subsidiaries and may be registered in cenain jurisdictions. PowerPC and the Powerf'C logo arc tmdemarks of International Business Machines Corporation, used under license therefrom.
    [Show full text]
  • Diskwarrior Manual
    DiskWarrior™ Alsoft, Inc. P.O. Box 927 Spring, TX 77383 Sales: 281-353-4090, Fax: 281-353-9868 E-Mail: [email protected] Support: 281-353-1510 E-Mail: [email protected] World Wide Web: www.Alsoft.com Copyright This manual and the software described in it are copyrighted with all rights reserved. Under the copyright laws, this manual or the software may not be copied, in whole or part, without written consent of Alsoft, Inc., except in the normal use of the software or to make a backup copy. The same proprietary and copyright notices must be affixed to any permitted copies as were affixed to the original. This exception does not allow copies to be made for others, whether or not sold to another person. Under the law, copying includes translating into another language or format. Limited Warranty Alsoft warrants the program to perform substantially in accordance with the manual and the disk on which the program is recorded to be free from defects in materials and faulty workmanship under normal use and service for a period of ninety (90) days from the date the program is pur- chased. If, during the 90-day period, a defect in the program or the disk should occur, Alsoft will replace the disk and the program at no charge to you, provided you return the disk with proof of purchase to Alsoft. Alsoft’s entire liability and your exclusive remedy shall be replacement of the disk and its contents as provided above. If failure of the disk has resulted from accident, abuse or misapplication of the disk, then Alsoft shall have no responsibility to replace the disk under the terms of this limited warranty.
    [Show full text]
  • Troubleshooting
    Chapter 33 Troubleshooting IN THIS CHAPTER: I The SECRETS Rule of Three I Error messages explained I Oddities on the screen I Startup troubles I Disk troubles I File, desktop, and icon ailments I Keyboard snafus PRINCIPLES OF TROUBLESHOOTING The Macintosh has an infinite number of cooks. There are the programmers at Apple who wrote the system software. There are the programmers who wrote the software you use, including the extensions and control panels that modify the system software. And then there’s the hardware, complete with a number of additional software elements (in the ROM chips, for example), both from Apple and other companies. With so many instructions being shouted at it, no wonder the Mac can get flustered and throw up its hands in frustration. The problems you may encounter vary: 1047 1048 Part IV: Attachments I Mysterious system crashes or freezes I Error messages I Startup problems (the blinking question mark icon or the Sad Mac icon) I Application problems, when the Mac simply doesn’t do what it’s sup- posed to I Printing troubles I Disk problems (their icons don’t show up on the desktop or the Mac reports that they’re “not a Macintosh disk”) A word about troubleshooting There’s a certain emotional element to a Mac going wrong. The Mac, after all, is betraying you, usually at a moment when you can least afford it. We don’t know about you, but when our Macs go goofy, we feel a rising well of frustra- tion and loss of control. Our heart rate doesn’t go back to normal until some semblance of normal operation has returned.
    [Show full text]
  • Mini'apples Newsletter the Minnesota Apple Computer Users' Group, Inc
    $2 Volume 19, Issue 2 mini'apples newsletter the minnesota apple computer users' group, inc. FEBRUARY 1996 Special Event: Annual Meeting Southdale Library, 7001 York Ave. S., Edina Nick Ludwig 349-0206 See inside for details Telecommunications SIG Apple ll/GS Main Filemaker Pro SIG 31 MN Department of Health Augsberg Park Library, Southdale Library 7100 Nicollet Ave., Richfield 7100 York Avenue South, Edina 717 SE Delaware St.. Mpls. ^ "Research on the Net" © Tom Gates, 789-6981 SteveWilmes, 458-1513 Nick Ludwig. 349-0206 Board of Directors Photoshop SIG AppleWorks SIG Jacor Mini'app'les members welcome. 13 22 ^ Ramsey County Library Matthews Ctr.. 2318 29th Ave. S., 1410 Energy Park Drive #17 2180 Hamline Ave. N., Roseville Rm. C « St. Paul "Spreadsheet: Basic to Inter." "\\Brian Bantz, 835-3696 Eric Jacobson, 645-6264 Les Anderson, 735-3953 Macintosh Novice SIG ClarisWorks SIG Fourth Dimension SIG Merriam Park Library Southdale Library 16 fr5* Metro II 26 I 1831 Marshall Ave., St. Paul 7100 York Avenue South, Edina 1300 Mendota Heights Rd., Tom Lufkin, 698-6523 Denis Diekhoff, 920-2437 Mendota Hgts CB Bob Demeules, 559-1124 Mac Programmers SIG Macintosh Main Apple II Novice SIG St. Louis Park Library Ramsey County Library 27 m Van Cleve Park Bldg. 8 d3l 20 rr^ 15th Ave. SE & Como Ave. 3200 Library Lane, St. Louis Park 2180 Hamline Ave. N., Roseville "Newton" UI Tom Gates, 789-6981 Minneapolis "V Gervaise Kimm, 379-1836 Mike Carlson, 377-6553 Macintosh Consultants SIG Digital Photography Microsoft Word SIG ASAP 28 Microsoft 12 Byerly's 21 il 3777 Park Center Blvd, St.
    [Show full text]
  • Macintosh Library Modules Release 2.4.1
    Macintosh Library Modules Release 2.4.1 Guido van Rossum Fred L. Drake, Jr., editor 30 March 2005 Python Software Foundation Email: [email protected] Copyright c 2001-2004 Python Software Foundation. All rights reserved. Copyright c 2000 BeOpen.com. All rights reserved. Copyright c 1995-2000 Corporation for National Research Initiatives. All rights reserved. Copyright c 1991-1995 Stichting Mathematisch Centrum. All rights reserved. See the end of this document for complete license and permissions information. Abstract This library reference manual documents Python’s extensions for the Macintosh. It should be used in conjunction with the Python Library Reference, which documents the standard library and built-in types. This manual assumes basic knowledge about the Python language. For an informal introduction to Python, see the Python Tutorial; the Python Reference Manual remains the highest authority on syntactic and semantic questions. Finally, the manual entitled Extending and Embedding the Python Interpreter describes how to add new extensions to Python and how to embed it in other applications. CONTENTS 1 Using Python on a Macintosh 1 1.1 Getting and Installing MacPython .................................. 1 1.2 The IDE ............................................... 2 1.3 The Package Manager ........................................ 3 2 MacPython Modules 5 2.1 macpath — MacOS path manipulation functions ......................... 5 2.2 macfs — Various file system services ............................... 5 2.3 ic — Access to Internet Config ................................... 8 2.4 MacOS — Access to Mac OS interpreter features .......................... 9 2.5 macostools — Convenience routines for file manipulation ................... 10 2.6 findertools — The finder’s Apple Events interface ...................... 10 2.7 EasyDialogs — Basic Macintosh dialogs ............................ 11 2.8 FrameWork — Interactive application framework ........................
    [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]
  • Tinkertool System 6 Reference Manual Ii
    Documentation 0632-1969/2 TinkerTool System 6 Reference Manual ii Version 6.99, July 21, 2021. US-English edition. MBS Documentation 0632-1969/2 © Copyright 2003 – 2021 by Marcel Bresink Software-Systeme Marcel Bresink Software-Systeme Ringstr. 21 56630 Kretz Germany All rights reserved. No part of this publication may be redistributed, translated in other languages, or transmitted, in any form or by any means, electronic, mechanical, recording, or otherwise, without the prior written permission of the publisher. This publication may contain examples of data used in daily business operations. To illustrate them as completely as possible, the examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental. This publication could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. The publisher may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice. Make sure that you are using the correct edition of the publication for the level of the product. The version number can be found at the top of this page. Apple, macOS, iCloud, and FireWire are registered trademarks of Apple Inc. Intel is a registered trademark of Intel Corporation. UNIX is a registered trademark of The Open Group. Broadcom is a registered trademark of Broadcom, Inc. Trademarks or service marks are used for identification purposes only.
    [Show full text]