AppleScript in a Nutshell
Home > Computing and Information Technology > Operating systems > Apple operating systems > AppleScript in a Nutshell: A Desktop Quick Reference
AppleScript in a Nutshell: A Desktop Quick Reference

AppleScript in a Nutshell: A Desktop Quick Reference


     0     
5
4
3
2
1



International Edition


X
About the Book

A complete reference to AppleScript, the popular programming language that gives both power users and sophisticated enterprise customers the important ability to automate repetitive tasks and customize applications. As the Macintosh continues to expand and solidify its base in the multimedia and publishing industries, AppleScript is and important tool on this platform for creating sophisticated time- and money-saving workflow applications (applets). These applets automate the processing and management of digital video, imaging, print, and web-based material. AppleScript is also gaining a foothold in scientific programming, as technical organizations adopt G4 CPU-based systems for advanced computing and scientific analysis. Finally, "power users" and script novices will find that AppleScript is a great every-day Mac programming tool, similar to Perl on Windows NT or Unix. In this reference, AppleScript programmers will find: detailed coverage of AppleScript Version 1.4 and beyond on Mac OS 9 and Mac OS X; complete descriptions of AppleScript language features, such as data types, flow-control statements, functions, object-oriented features (script objects and libraries), and other syntactical elements; and descriptions and hundreds of code samples on programming the various "scriptable" system components, such as the Finder, File Sharing, File Exchange, Network scripting, Web scripting, Apple System Profiler, the ColorSync program, and the numerous powerful language extensions called "osax" or scripting additions. The book covers updates and improvements with practical, easy to understand tips, including using AppleScript as a tool for distributed computing, a development that Apple Computer calls "program linking over IP". Programmers can now do distributed computing with Macs over TCP/IP networks, including controlling remote applications with AppleScript and calling AppleScript methods on code libraries that are located on other machines. It also covers using the Sherlock find application to automate web and network searching and insights on scripting new Apple technologies such as Apple Data Detectors, Folder Actions, Keychain Access, and Apple Verifier.

Table of Contents:
Preface Part I. Introduction to AppleScript Chapter 1. AppleScript: An Introduction How Is AppleScript Used? Apple Events Using Script Runner with OS X Using OSA Menu with OS 9 Checking Your AppleScript Version Diving In Chapter 2. Using Script Editor with OS 9 and OS X Script Editor Controls/Commands 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 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 mod 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 Variables Constants and Predefined Variables all caps all lowercase anything application responses ask bold case condensed current application date and time constants diacriticals expanded expansion false hidden hyphens it italic me missing value my no outline pi plain punctuation result return shadow small caps space strikethrough subscript superscript tab true underline version white space yes 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 Subroutines with Positional Parameters Subroutines with Labeled Parameters idle handler open handler reopen handler quit handler run handler 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 Example Finder Scripts Finder Commands 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 Working with Files, Folders, Disks, and Windows in OS X Chapter 33. Scripting Mail Setting Up an Email Message Exploring the Mail Application Object 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 Index

About the Author :
Bruce W. Perry is an independent software developer and writer. Since 1996, he has developed web applications and databases for various non-profits, design and marketing firms, ad agencies, and digital-music specialists. Before working in the web field, Perry remained tethered to his portable and desktop Macs while writing environmental law books and newsletters. When not hacking or writing, he loves cycling and climbing mountains in the U.S. and Switzerland. He lives in the Newburyport, Massachusetts area with his wife Stacy LeBaron and daughter Rachel.

Review :
'A very technical book which will serve as a work of reference for Mac programmers.' Freelance Informer, July 13th 2001


Best Sellers


Product Details
  • ISBN-13: 9781565928411
  • Publisher: O'Reilly Media
  • Publisher Imprint: O'Reilly Media
  • Language: English
  • Returnable: Y
  • Returnable: Y
  • ISBN-10: 1565928415
  • Publisher Date: 10 Jul 2001
  • Binding: Book
  • No of Pages: 500
  • Returnable: Y
  • Sub Title: A Desktop Quick Reference


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
AppleScript in a Nutshell: A Desktop Quick Reference
O'Reilly Media -
AppleScript in a Nutshell: A Desktop Quick Reference
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

AppleScript in a Nutshell: A Desktop Quick Reference

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!