Hypercard Script Language Guide

Total Page:16

File Type:pdf, Size:1020Kb

Hypercard Script Language Guide HyperCard Script Language Guide The HyperTalk Language Apple Computer, Inc. Adobe Illustrator and PostScript are © 1996 Apple Computer, Inc. trademarks of Adobe Systems All rights reserved. Incorporated, which may be No part of this publication may be registered in certain jurisdictions. reproduced, stored in a retrieval FileMaker, MacPaint, and MacWrite system, or transmitted, in any form are trademarks of Claris or by any means, mechanical, Corporation. electronic, photocopying, recording, FrameMaker is a registered or otherwise, without prior written trademark of Frame Technology permission of Apple Computer, Inc. Corporation. Printed in the United States of Helvetica and Palatino are America. registered trademarks of Linotype The Apple logo is a trademark of Company. Apple Computer, Inc. Use of the ITC Zapf Dingbats is a registered “keyboard” Apple logo (Option- trademark of International Typeface Shift-K) for commercial purposes Corporation. without the prior written consent of Microsoft is a registered trademark Apple may constitute trademark of Microsoft Corporation. infringement and unfair competition in violation of federal and state laws. Simultaneously published in the No licenses, express or implied, are United States and Canada. granted with respect to any of the technology described in this book. Apple retains all intellectual property rights associated with the technology described in this book. LIMITED WARRANTY ON MEDIA This book is intended to assist AND REPLACEMENT application developers to develop ALL IMPLIED WARRANTIES ON THIS IN NO EVENT WILL APPLE BE applications only for Apple MANUAL, INCLUDING IMPLIED LIABLE FOR DIRECT, INDIRECT, Macintosh computers. WARRANTIES OF MERCHANTA- SPECIAL, INCIDENTAL, OR Apple Computer, Inc. BILITY AND FITNESS FOR A CONSEQUENTIAL DAMAGES 20525 Mariani Avenue PARTICULAR PURPOSE, ARE RESULTING FROM ANY DEFECT OR Cupertino, CA 95014 LIMITED IN DURATION TO NINETY INACCURACY IN THIS MANUAL, 408-996-1010 (90) DAYS FROM THE DATE OF THE even if advised of the possibility of such ORIGINAL RETAIL PURCHASE OF damages. Apple, the Apple logo, APDA, THIS PRODUCT. AppleCD SC, AppleLink, THE WARRANTY AND REMEDIES AppleTalk, ImageWriter, Even though Apple has reviewed this SET FORTH ABOVE ARE EXCLUSIVE HyperCard, HyperTalk, LaserWriter, manual, APPLE MAKES NO AND IN LIEU OF ALL OTHERS, ORAL Macintosh, MPW, MultiFinder, WARRANTY OR REPRESENTATION, OR WRITTEN, EXPRESS OR IMPLIED. PowerBook, SANE, and Stackware EITHER EXPRESS OR IMPLIED, WITH No Apple dealer, agent, or employee is are trademarks of Apple Computer, RESPECT TO THIS MANUAL, ITS authorized to make any modification, Inc., registered in the United States QUALITY, ACCURACY, MERCHANTA- extension, or addition to this warranty. BILITY, OR FITNESS FOR A and other countries. Some states do not allow the exclusion PARTICULAR PURPOSE. AS A AppleScript, Chicago, Finder, or limitation of implied warranties or RESULT, THIS MANUAL IS SOLD “AS Geneva, Macintosh Quadra, liability for incidental or consequential IS,” AND YOU, THE PURCHASER, Monaco, New York, QuickDraw, damages, so the above limitation or ARE ASSUMING THE ENTIRE RISK QuickTime, ResEdit, System 7, and exclusion may not apply to you. This AS TO ITS QUALITY AND WorldScript are trademarks of warranty gives you specific legal rights, ACCURACY. Apple Computer, Inc. and you may also have other rights which vary from state to state. Contents Figures and Tables xiii Preface About This Guide xix What’s in This Book? xix Notation Conventions xxi Changes Since the First Edition of This Guide xxii Apple Developer Programs xxiii Chapter 1 What’s New Since 2.0? 1 HyperCard System Requirements 1 HyperCard Enhancements 2 WorldScript Compatibility 3 HyperCard and Other Scripting Systems 3 Open Scripting Architecture 4 AppleScript 5 Script Attachability 6 Script Editor Enhancements 7 Button Dialog Modifications 7 New Button Features 8 Field Dialog Modifications 12 New Field Features 13 Integrated Stand-Alone Application Builder 14 Enhanced HyperTalk 15 Chapter 2 HyperTalk Basics 23 What Is HyperTalk? 23 Objects 24 Buttons and Fields 24 Cards, Backgrounds, and Stacks 25 iii Messages 25 Scripts 26 Message Handlers 26 Function Handlers 27 Windows 28 Card Windows 28 HyperCard’s Built-in External Windows 30 Menus 30 Chapter Summary 32 Chapter 3 The Scripting Environment 33 Getting to the Script 33 The Script Editor 35 Manipulating Text 37 Searching for Text 38 Replacing Text 39 Entering Comments 39 Formatting Scripts 40 Line Length and Script Size 41 Script Editor Command Summary 41 The Debugger Environment 43 Setting Checkpoints 45 HyperTalk Debugger Windows 45 Message Watcher 46 Variable Watcher 47 Custom Message Watcher and Variable Watcher XCMDs 48 Debugger Command Summary 49 Chapter Summary 50 Chapter 4 Handling Messages 51 The HyperCard Environment 51 Sending Messages 52 System Messages 52 Statements as Messages 53 iv Message Box Messages 53 Messages Resulting From Commands 54 Receiving Messages 55 Message-Passing Hierarchy 56 Where Messages Go 56 Messages to Buttons and Fields 58 The Current Hierarchy 59 The Target 61 The User-Defined Hierarchy 62 The Dynamic Path 67 The Go Command and the Dynamic Path 67 The Send Keyword and the Dynamic Path 69 Handlers Calling Handlers 71 Subroutine Calls 71 Recursion 72 Using the Hierarchy 73 Sharing Handlers 73 Intercepting Messages 76 Parameter Passing 77 Chapter Summary 79 Chapter 5 Referring to Objects, Menus, and Windows 81 Names, Numbers, and IDs 81 Object Names 83 Object Numbers 84 Part Numbers 85 Button Families 87 Special Ordinals 87 Object Numbers and Tab Order 87 Object ID Numbers 88 Special Object Descriptors 89 Identifying a Stack 89 Naming a Stack 91 Combining Object Descriptors 92 Referring to Menus and Menu Items 93 v Menu and Menu Item Names 93 Menu and Menu Item Numbers 93 Referring to Windows 96 Chapter Summary 97 Chapter 6 Values 99 Constants 99 Literals 100 Functions 100 Properties 101 Numbers 101 Standard Apple Numerics Environment 102 Precision 102 Number Handling 103 Containers 103 Fields 104 Buttons 104 Variables 105 Scope of Variables 106 Parameter Variables 106 The Variable It 106 Menus 107 The Selection 107 The Message Box 108 Chapter Summary 109 Chapter 7 Expressions 111 Complex Expressions 111 Factors 111 HyperTalk Operators 113 Operator Precedence 117 Operators and Expression Type 118 Chunk Expressions 118 Syntax of Chunk Expressions 119 vi Characters 120 Words 120 Items 120 Lines 121 Ranges 121 Chunks and Containers 122 Chunks as Destinations as Well as Sources 123 Nonexistent Chunks 124 Chapter Summary 124 Chapter 8 System Messages 125 Messages and Commands 125 Messages Sent to a Button 126 Messages Sent to a Field 128 Messages Sent to the Current Card 131 Message Order 138 Chapter 9 Control Structures and Keywords 141 Keywords in Message Handlers 141 Message Handler Example 144 Keywords in Function Handlers 145 Function Handler Example 149 Repeat Structure 149 Repeat Statements 150 If Structure 155 Single-Statement If Structure 155 Multiple-Statement If Structure 156 Nested If Structures 157 Chapter 10 Commands 165 Redefining Commands 165 Syntax Description Notation 166 vii System 7 Commands 167 Command Descriptions 167 Chapter 11 Functions 289 Function Calls 289 Syntax Description Notation 290 Function Descriptions 291 Chapter 12 Properties 357 Retrieving and Setting Properties 357 Object Properties 358 Stack Properties 359 Background Properties 360 Card Properties 361 Field Properties 362 Button Properties 365 Rectangle Properties 367 Environmental Properties 368 Global Properties 369 Painting Properties 372 Window Properties 374 Menu, Menu Bar, and Menu Item Properties 375 Message Watcher and Variable Watcher Properties 376 HyperCard Property Descriptions 377 Appendix A External Commands and Functions 503 Definitions, Uses, and Examples 503 XCMD and XFCN Resources 503 Uses for XCMDs and XFCNs 504 Using an XCMD or XFCN 504 Invoking XCMDs and XFCNs 505 Message-Passing Hierarchy 505 viii Guidelines for Writing XCMDs and XFCNs 507 Attaching an XCMD or XFCN 508 Parameter Block Data Structure 509 Passing Parameters to XCMDs and XFCNs 510 ParamCount 510 Params 510 Passing Back Results to HyperCard 510 ReturnValue 510 PassFlag 511 Callbacks 511 EntryPoint 511 Request 511 Result 511 InArgs 512 OutArgs 512 Callback Procedures and Functions 512 HyperTalk Utilities 513 Memory Utilities 514 String Utilities 514 String Conversions 515 Field Utilities 518 Miscellaneous Utilities 519 Creating and Disposing of External Windows 522 Window Utilities 525 Text Editing Utilities 529 Script Editor Utilities 530 Variable Watcher Support 532 Debugger Support 533 External Windows 534 Events in External Windows 536 Handling Events 537 Closing an External Window 540 Special XCmdBlock Values 540 Message Watcher 541 Variable Watcher 541 Script Editor 541 Debugger 542 ix XTalkObject 542 Window Layer Management 543 Flash: An Example XCMD 545 Flash Listing in MPW Pascal 546 Flash Listing in MPW C 548 Flash Listing in 68000 Assembly Language 550 Appendix B Constants 553 Appendix C Enhancing the Execution Speed of HyperCard 555 Change Stacks as Seldom as Possible 556 Use Variables, Not Fields, for Operations 556 Refer to a Remote Card Rather Than Going There 557 Migrate to XCMDs and XFCNs for Repetitive Tasks 558 Set LockScreen to True to Avoid Needless Redrawing 558 Set LockMessages to True During Card-to-Card Data Collection 558 Combine Multiple Messages 558 Take Unnecessary Code Out of Loops 559 Use In-Line Statements Rather Than Handler Calls 559 Do Complex
Recommended publications
  • Quicktime Components
    INSIDE MACINTOSH QuickTime Components Addison-Wesley Publishing Company Reading, Massachusetts Menlo Park, California New York Don Mills, Ontario Wokingham, England Amsterdam Bonn Sydney Singapore Tokyo Madrid San Juan Paris Seoul Milan Mexico City Taipei Apple Computer, Inc. LIMITED WARRANTY ON MEDIA AND © 1993, Apple Computer, Inc. REPLACEMENT All rights reserved. ALL IMPLIED WARRANTIES ON THIS No part of this publication may be MANUAL, INCLUDING IMPLIED reproduced, stored in a retrieval WARRANTIES OF MERCHANTABILITY system, or transmitted, in any form or AND FITNESS FOR A PARTICULAR by any means, mechanical, electronic, PURPOSE, ARE LIMITED IN DURATION photocopying, recording, or otherwise, TO NINETY (90) DAYS FROM THE DATE without prior written permission of OF THE ORIGINAL RETAIL PURCHASE Apple Computer, Inc. Printed in the OF THIS PRODUCT. United States of America. Even though Apple has reviewed this No licenses, express or implied, are manual, APPLE MAKES NO WARRANTY granted with respect to any of the OR REPRESENTATION, EITHER EXPRESS technology described in this book. OR IMPLIED, WITH RESPECT TO THIS Apple retains all intellectual property MANUAL, ITS QUALITY, ACCURACY, rights associated with the technology MERCHANTABILITY, OR FITNESS FOR A described in this book. This book is PARTICULAR PURPOSE. AS A RESULT, intended to assist application THIS MANUAL IS SOLD “AS IS,” AND developers to develop applications only YOU, THE PURCHASER, ARE ASSUMING for Apple Macintosh computers. THE ENTIRE RISK AS TO ITS QUALITY Apple Computer, Inc. AND ACCURACY. 20525 Mariani Avenue IN NO EVENT WILL APPLE BE LIABLE Cupertino, CA 95014 FOR DIRECT, INDIRECT, SPECIAL, 408-996-1010 INCIDENTAL, OR CONSEQUENTIAL Apple, the Apple logo, APDA, DAMAGES RESULTING FROM ANY AppleLink, LaserWriter, Macintosh, DEFECT OR INACCURACY IN THIS MPW, and MultiFinder are trademarks MANUAL, even if advised of the possibility of Apple Computer, Inc., registered in of such damages.
    [Show full text]
  • Guidance for the Provision of ESI to Detainees
    Guidance for the Provision of ESI to Detainees Joint Electronic Technology Working Group October 25, 2016 Contents Guidance ......................................................................................................................................... 1 I. An Approach to Providing e-Discovery to Federal Pretrial Detainees ................................... 1 II. Special Concerns in the Delivery of ESI to Detainees ........................................................... 2 A. Defense Concerns .............................................................................................................. 2 B. CJA and FDO Budgeting Concerns ................................................................................... 3 C. Court Concerns ................................................................................................................... 3 D. Facility Concerns ............................................................................................................... 3 E. U.S. Marshals Service Concerns ........................................................................................ 4 F. Government Concerns ........................................................................................................ 4 III. Practical Steps ....................................................................................................................... 4 A. Government, Defense, Facility and Judicial Points of Contact/Working Group ............... 4 B. Identify Facility e-Discovery Capabilities ........................................................................
    [Show full text]
  • File Naming Recommendations
    File Naming Recommendations In a mixed platform world of Macintosh, Windows, and Unix computers, you must pay attention to how you name your file. On PCs, you usually append a three-letter file extension after the file name to tell the computer what program to launch when it is double-clicked. Programs on the PC do this automatically, but the same programs running on the Mac often do not. Things to avoid: 1.) Don't add extraneous punctuation to the file name. For example, don't use #. %, forward or back slashes, ampersands, and question marks or any other strange glyph. Stick mostly to letters and numbers. Dashes and underscores are OK. Good: my_file.jpg Bad: my/file.jpg 2.) Don't put more than one period in the file name. Use only one period at the end of the file name just before the three-letter suffix. Good: very_big_splash.jpg Bad: very.big.splash.jpg 3.) Don't omit the 3-letter suffix. Add the correct 3-letter suffix to the file name if none is created by the application program. ALL web browsers require a suffix to be able to tell a picture file from a text file, for example. Good: promopic.gif Bad: promopic.newone Bad: promopic 4.) Avoid spaces in filenames. High-speed Unix-based web servers dislike having spaces in the file name. Your pages and files with spaces in the name may work on a Mac or PC server, but if you ever migrate the files to a Unix server, you're in trouble. Most web designers use underscores in the file name to separate words for clarity.
    [Show full text]
  • Apple Professional Development Catalog April 2013 Leadership | Foundations | Curriculum | Support | Higher Education
    Apple Professional Development Catalog April 2013 Leadership | Foundations | Curriculum | Support | Higher Education Table of Contents Get the Most from Your Apple Products .............................3 Getting Started ...............................................................................4 Leadership ............................................................................6 Education Technology Profile ...................................................6 Education Strategic Planning ...................................................7 Foundations .........................................................................8 iOS Devices .......................................................................................8 iOS Creativity ...................................................................................9 iOS Productivity ...........................................................................10 iOS for Administrators ...............................................................11 OS X ..................................................................................................12 iLife.................................................................................................... 13 iWork ................................................................................................14 iBooks Author ...............................................................................15 iTunes U Course Manager ........................................................16 Workflow for Teaching and Learning ..................................17
    [Show full text]
  • Supported Formats (August 2020)
    Oracle Outside In Technology 8.5.5 Supported Formats (August 2020) Archive Version Multimedia Version 7z split archives not supported) AVI (Metadata only) 7z Self Extracting exe (split archives not DICOM (File ID only) supported) LZA Self Extracting Compres Flash (text extraction only) 6.x, 7.x, Lite LZH Compress Flash (File ID only) 9,10 Microsoft Office Binder Real Media (File ID only) Microsoft Cabinet (CAB) 95 – 97 MP3 (ID3 metadata only) RAR 1.5, 2.0, 2.9, MPEG-1 Audio layer 3 V ID3 v1 5.0 (Metadata only) Self-extracting .exe MPEG-1 Audio layer 3 V ID3 v2 (Metadata only) UNIX Compress MPEG-1 Video V 2 (File ID only) UNIX GZip MPEG-1 Video V 3 (File ID only) UNIX tar MPEG-2 Audio (File ID only) Uuencode MPEG-4 (Metadata only) ZIP PKZip MPEG-7 (Metadata only) ZIP WinZip QuickTime (Metadata only) ZIP ZIP64 Windows Media ASF (Metadata only) Database Version Windows Media DVR-MS (Metadata only) DataEase 4.x Windows Media Audio WMA (Metadata only) DBase III, IV, V, X, X1 Windows Media Playlist (File ID only) First Choice DB Through 3.0 Windows Media Video WMV (Metadata only) Framework DB 3.0 WAV (Metadata only) Microsoft Access (text only) 1.0, 2.0, 95 … Other Version 2019 Microsoft Access Report Snapshot (File ID 2000 – 2003 AOL Messenger (File ID only) 7.3 only) Microsoft Works DB for DOS 2.0 Microsoft InfoPath (File ID only) 2007 Microsoft Works DB for Macintosh 2.0 Microsoft Live Messenger (via XML filter) 10.0 Microsoft Works DB for Windows 3.0, 4.0 Microsoft Office Theme files (File ID only) 2007 … 2019 Microsoft Works DB for DOS
    [Show full text]
  • Mac OS 8 Update
    K Service Source Mac OS 8 Update Known problems, Internet Access, and Installation Mac OS 8 Update Document Contents - 1 Document Contents • Introduction • About Mac OS 8 • About Internet Access What To Do First Additional Software Auto-Dial and Auto-Disconnect Settings TCP/IP Connection Options and Internet Access Length of Configuration Names Modem Scripts & Password Length Proxies and Other Internet Config Settings Web Browser Issues Troubleshooting • About Mac OS Runtime for Java Version 1.0.2 • About Mac OS Personal Web Sharing • Installing Mac OS 8 • Upgrading Workgroup Server 9650 & 7350 Software Mac OS 8 Update Introduction - 2 Introduction Mac OS 8 is the most significant update to the Macintosh operating system since 1984. The updated system gives users PowerPC-native multitasking, an efficient desktop with new pop-up windows and spring-loaded folders, and a fully integrated suite of Internet services. This document provides information about Mac OS 8 that supplements the information in the Mac OS installation manual. For a detailed description of Mac OS 8, useful tips for using the system, troubleshooting, late-breaking news, and links for online technical support, visit the Mac OS Info Center at http://ip.apple.com/infocenter. Or browse the Mac OS 8 topic in the Apple Technical Library at http:// tilsp1.info.apple.com. Mac OS 8 Update About Mac OS 8 - 3 About Mac OS 8 Read this section for information about known problems with the Mac OS 8 update and possible solutions. Known Problems and Compatibility Issues Apple Language Kits and Mac OS 8 Apple's Language Kits require an updater for full functionality with this version of the Mac OS.
    [Show full text]
  • Mac OS X Server Administrator's Guide
    034-9285.S4AdminPDF 6/27/02 2:07 PM Page 1 Mac OS X Server Administrator’s Guide K Apple Computer, Inc. © 2002 Apple Computer, Inc. All rights reserved. Under the copyright laws, this publication may not be copied, in whole or in part, without the written consent of Apple. The Apple logo is a trademark of Apple Computer, Inc., registered in the U.S. and other countries. Use of the “keyboard” Apple logo (Option-Shift-K) for commercial purposes without the prior written consent of Apple may constitute trademark infringement and unfair competition in violation of federal and state laws. Apple, the Apple logo, AppleScript, AppleShare, AppleTalk, ColorSync, FireWire, Keychain, Mac, Macintosh, Power Macintosh, QuickTime, Sherlock, and WebObjects are trademarks of Apple Computer, Inc., registered in the U.S. and other countries. AirPort, Extensions Manager, Finder, iMac, and Power Mac are trademarks of Apple Computer, Inc. Adobe and PostScript are trademarks of Adobe Systems Incorporated. Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. Netscape Navigator is a trademark of Netscape Communications Corporation. RealAudio is a trademark of Progressive Networks, Inc. © 1995–2001 The Apache Group. All rights reserved. UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company, Ltd. 062-9285/7-26-02 LL9285.Book Page 3 Tuesday, June 25, 2002 3:59 PM Contents Preface How to Use This Guide 39 What’s Included
    [Show full text]
  • The American Short Story: from Poe to O. Henry. a Hypercard Application
    DOCUMENT RESUME ED 330 315 IR 014 934 AUTHOR May, Charles TITLE The American Short Story: From Poe to 0. Henry. A HyperCard Application. INSTITUTION California State Univ., Long Beach. English Dept. PUB DATE 90 NOTE 38p.; Supported by the 1989-90 Dissemination Grant from the California State University Lottery Revenue Program for Instructional Development and Technology. PUB TYPE Guides - Non-Classroom Use (055) EDRS PRICE MF01/PCO2 Plus Postage. DESCRIPTORS Authoring Aids (Programing); *Computer Assisted Instruction; Computer Software Development; Elementary Secondary Education; English Instruction; English Literature; Higher Education; *Hypermedia; Short Stories IDENTIFIERS Apple Macintosh ABSTRACT This report describes a computer-assisted instructional application created on a Macintosh computer using HyperCard software. The iL3tructional program is aimed at those who teach college-level English education courses and those whoare planning a course on the use of technology in the English classroom. It is noted that the HyperCard software was developed to aid in teaching English literature, specifically short stories, and provides access not only to the text of the short story, but also to concepts and patterns throughout the story. The rationale behind using the Macintosh computer, the concept of hypermedia and hypertext and, in particular, the use of HyperCard on the Macintosh, are discussed. Also described is the theory of short story analysis that underlies the computer application. The report concludes with a detailed discussion of programming using the HyperCard software, and suggests a method for creating unique applications to meet the needs of individual classroomE. (DB) *********************************************************************** * Reproductions supplied by EDRS are the best that can be made * * from the original document.
    [Show full text]
  • Develop-21 9503 March 1995.Pdf
    develop E D I T O R I A L S T A F F T H I N G S T O K N O W C O N T A C T I N G U S Editor-in-Cheek Caroline Rose develop, The Apple Technical Feedback. Send editorial suggestions Managing Editor Toni Moccia Journal, a quarterly publication of or comments to Caroline Rose at Technical Buckstopper Dave Johnson Apple Computer’s Developer Press AppleLink CROSE, Internet group, is published in March, June, [email protected], or fax Bookmark CD Leader Alex Dosher September, and December. develop (408)974-6395. Send technical Able Assistants Meredith Best, Liz Hujsak articles and code have been reviewed questions about develop to Dave Our Boss Greg Joswiak for robustness by Apple engineers. Johnson at AppleLink JOHNSON.DK, His Boss Dennis Matthews Internet [email protected], CompuServe This issue’s CD. Subscription issues Review Board Pete “Luke” Alexander, Dave 75300,715, or fax (408)974-6395. Or of develop are accompanied by the Radcliffe, Jim Reekes, Bryan K. “Beaker” write to Caroline or Dave at Apple develop Bookmark CD. The Bookmark Ressler, Larry Rosenstein, Andy Shebanow, Computer, Inc., One Infinite Loop, CD contains a subset of the materials Gregg Williams M/S 303-4DP, Cupertino, CA 95014. on the monthly Developer CD Series, Contributing Editors Lorraine Anderson, which is available from APDA. Article submissions. Ask for our Steve Chernicoff, Toni Haskell, Judy Included on the CD are this issue and Author’s Guidelines and a submission Helfand, Cheryl Potter all back issues of develop along with the form at AppleLink DEVELOP, Indexer Marc Savage code that the articles describe.
    [Show full text]
  • Hypertalk: the Language for the Rest of Us
    HyperTalk: The Language for the Rest of Us Kyle Wheeler January 18, 2004 Contents 1 Introduction 1 Introduction 1 There is, perhaps, no piece of software written by Ap- ple Computer, Inc. more prone to generating extreme 2 History 1 emotions in its users than its operating system. Next 2.1 TheBirth ................ 1 below that, however, is HyperCard. Designed and re- 2.2 TheLife................. 2 leased in 1987 by Bill Atkinson [7], HyperCard was an 2.3 TheDeath................ 2 instant success. Leveraging the power and simplicity 2.4 TheLegend ............... 2 of its scripting language, HyperTalk, designed by Bill Atkinson and by Dan Winkler [1], HyperCard demys- 3 Goals 2 tified the art of creating software. The language has a grammar and syntax similar to English, and as such ap- 4 Syntax Semantics 3 pealed to computer hobbyists, teachers, and the uniniti- 4.1 Implementation Notes . 3 ated alike. The commands HyperTalk uses are similar to 4.2 Objects ................. 3 those used by the Macintosh Toolbox, the base-level API 4.3 Messages ................ 4 of Apple’s Macintosh operating system, and the logical 4.4 Handlers................. 4 structure is similar to Pascal and organized in an event- 5 Bibliography 4 driven manner [8]. A BNF 6 A.1 Scripts.................. 6 2 History A.2 Expressions ............... 6 A.3 Ordinals and Positions . 7 2.1 The Birth A.4 Chunks and Containers . 7 HyperTalk was born as the core scripting language of A.5 Objects ................. 7 the HyperCard application, developed by Bill Atkinson1 A.6 Commands . 8 for Apple Computer, Inc. in 1987 under the condition A.6.1 Command Nonterminals .
    [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]
  • Mac OS X: an Introduction for Support Providers
    Mac OS X: An Introduction for Support Providers Course Information Purpose of Course Mac OS X is the next-generation Macintosh operating system, utilizing a highly robust UNIX core with a brand new simplified user experience. It is the first successful attempt to provide a fully-functional graphical user experience in such an implementation without requiring the user to know or understand UNIX. This course is designed to provide a theoretical foundation for support providers seeking to provide user support for Mac OS X. It assumes the student has performed this role for Mac OS 9, and seeks to ground the student in Mac OS X using Mac OS 9 terms and concepts. Author: Robert Dorsett, manager, AppleCare Product Training & Readiness. Module Length: 2 hours Audience: Phone support, Apple Solutions Experts, Service Providers. Prerequisites: Experience supporting Mac OS 9 Course map: Operating Systems 101 Mac OS 9 and Cooperative Multitasking Mac OS X: Pre-emptive Multitasking and Protected Memory. Mac OS X: Symmetric Multiprocessing Components of Mac OS X The Layered Approach Darwin Core Services Graphics Services Application Environments Aqua Useful Mac OS X Jargon Bundles Frameworks Umbrella Frameworks Mac OS X Installation Initialization Options Installation Options Version 1.0 Copyright © 2001 by Apple Computer, Inc. All Rights Reserved. 1 Startup Keys Mac OS X Setup Assistant Mac OS 9 and Classic Standard Directory Names Quick Answers: Where do my __________ go? More Directory Names A Word on Paths Security UNIX and security Multiple user implementation Root Old Stuff in New Terms INITs in Mac OS X Fonts FKEYs Printing from Mac OS X Disk First Aid and Drive Setup Startup Items Mac OS 9 Control Panels and Functionality mapped to Mac OS X New Stuff to Check Out Review Questions Review Answers Further Reading Change history: 3/19/01: Removed comment about UFS volumes not being selectable by Startup Disk.
    [Show full text]