Applescript : The Definitive Guide (Paperback)
暫譯: AppleScript:權威指南(平裝本)
Matt Neuburg
- 出版商: O'Reilly
- 出版日期: 2003-12-04
- 售價: $1,570
- 貴賓價: 9.5 折 $1,492
- 語言: 英文
- 頁數: 480
- 裝訂: Paperback
- ISBN: 0596005571
- ISBN-13: 9780596005573
已過版
買這商品的人也買了...
-
$680$537 -
$2,640$2,508 -
$980$774 -
$1,232Beginning Perl for Bioinformatics (Paperback)
-
$1,180$1,121 -
$1,660$1,577 -
$760$600 -
$590$466 -
$1,180$1,121 -
$690$538 -
$780$663 -
$750$713 -
$490$382 -
$720$569 -
$800$760 -
$560$476 -
$450$356 -
$2,370$2,252 -
$1,068Fundamentals of Database Systems, 4/e (IE)
-
$650$553 -
$650$553 -
$450$360 -
$1,995C++ Coding Standards: 101 Rules, Guidelines, and Best Practices (Paperback)
-
$650$507 -
$580$452
相關主題
商品描述
Summary
If you want to know all about AppleScript--the how, where, and why of using it--dig into AppleScript: The Definitive Guide. It doesn't make the mistake that other books do: it isn't about scripting this or that particular application, and it doesn't assume that learning AppleScript is easy or obvious. Instead, the book teaches and documents the language in a clear and rigorous manner, just as you'd expect with any programming or scripting language.
AppleScript is a dynamic, object-oriented scripting system that allows Mac users--even novices who know nothing about programming--to directly control Macintosh applications, including the Mac OS itself. You can write scripts to automate repetitive tasks, customize applications, and even control complex workflows.
AppleScript has always been useful, but with Mac OS X it's even more so. Nearly every application that comes with Mac OS X is scriptable. Even non-scriptable applications can often be driven with AppleScript, thanks to the new Accessibility API and GUI Scripting technologies. And now AppleScripters can put a true Aqua interface around their scripts! There's never been a more exciting time for AppleScript users.
AppleScript: The Definitive Guide explores and teaches the language from the ground up. If you're a beginner and want to learn how to write your first script or just understand what the excitement is all about, you'll be able to do so after reading this book.
Experienced AppleScripters will love having the most definitive, up-to-date AppleScript language reference available. AppleScript: The Definitive Guide is the quintessential guide to this important Mac tool. Regardless of their level of experience, AppleScripters everywhere will turn to this book again and again.
Table of Contents
Preface
Part I. AppleScript Overview
1. Ways to Use AppleScript
The Nature and Purpose of AppleScript
Is This Application Scriptable?
Calculation and Repetition
Reduction
Customization
Combining Specialties2. Places to Use AppleScript
Script Editor
Scripting Environment
Internally Scriptable Application
Script Runner
Automatic Location
Application
Unix3. The AppleScript Experience
The Problem
A Day in the Life
Conclusions, Lessons, and Advice4. Basic Concepts
Apple Event
The Open Scripting Architecture
Script
Compiling and Decompiling
Script Text File
Applet and Droplet
Scripting Addition
Dictionary
Scriptable, Recordable, AttachablePart II. The AppleScript Language
5. Introducing AppleScript
A "Little Language"
Extensibility and Its Perils
The "English-likeness" Monster
Object-likeness
LISP-likeness
The Learning Curve6. Syntactic Ground of Being
Lines
Result
Comments
Abbreviations and Synonyms
Blocks
The7. Variables
Assignment and Retrieval
Declaration and Definition of Variables
Variable Names
Scoping of Variables
Script Properties
Lifetime of Variables8. Handlers
Returned Value
Parameters
Syntax of Defining and Calling a Handler
Pass By Reference
Scoping of Handlers
Handlers as Values9. Script Objects
Scoping of Script Objects
Top-Level Entities
Script Object's Run Handler
Handler Calls
Script Objects as Values
Compiled Script Files as Script Objects
Inheritance10. Objects
Class
Target
Get
It
Me
Properties and Elements
Element Specifiers
Properties of Multiple References
Object String Specifier11. References
References as Incantations
Creating a Reference
Identifying References
Dereferencing a Reference
Creating References to Local Variables
Reference as Parameter12. Control
Branching
Looping
Tell
Using Terms From
With
Considering/Ignoring
Errors
Second-Level Evaluation13. Datatypes
Boolean
Integer, Real, and Number
Date
String
Unicode Text
Styled Text
File
Alias
Application
Machine
Data
List
Record14. Coercions
Implicit Coercion
Explicit Coercion
Boolean Coercions
String, Number and Date Coercions
File Coercions
List Coercions
Unit Conversions15. Operators
Arithmetic Operators
Boolean Operators
Comparison Operators
Containment Operators
Concatenation Operator
Parentheses
Who Performs an Operation16. Global Properties
Strings
Numbers
Miscellaneous17. Constants
18. Commands
Application Commands
Logging CommandsPart III. AppleScript In Action
19. Dictionaries
Resolution of Terminology
Resolution Difficulties
What's in a Dictionary
The 'aeut' Resource
Inadequacies of the Dictionary20. Scripting Additions
Pros and Cons of Scripting Additions
Scripting Additions and Speed
Classic Scripting Additions
Loading Scripting Additions
Standard Scripting Addition Commands21. Scriptable Applications
Targeting Scriptable Applications
Some Scriptable Applications22. Unscriptable Applications
Getting Started with Accessibility
GUI Scripting Examples23. Unix
Do Shell Script
Osascript24. Writing Applications
Applets
Digital Hub Scripting
Folder Actions
CGI Application
AppleScript StudioPart IV. Appendixes
A. The 'aeut' Resource
B. Tools and Resources
Index
商品描述(中文翻譯)
**摘要**
如果你想了解有關 AppleScript 的所有資訊——使用它的方式、地點和原因——請深入閱讀《AppleScript: The Definitive Guide》。這本書不會犯其他書籍的錯誤:它不是針對某個特定應用程式的腳本編寫,也不假設學習 AppleScript 是簡單或顯而易見的。相反,這本書以清晰而嚴謹的方式教授和記錄這門語言,就像你對任何程式語言或腳本語言的期望一樣。
AppleScript 是一個動態的物件導向腳本系統,允許 Mac 使用者——即使是對程式設計一無所知的新手——直接控制 Macintosh 應用程式,包括 Mac OS 本身。你可以編寫腳本來自動化重複的任務、自訂應用程式,甚至控制複雜的工作流程。
AppleScript 一直以來都很有用,但在 Mac OS X 中更是如此。幾乎每個隨 Mac OS X 附帶的應用程式都是可腳本化的。即使是非可腳本化的應用程式,通常也可以透過 AppleScript 來驅動,這要歸功於新的可及性 API 和 GUI 腳本技術。現在,AppleScripters 可以為他們的腳本添加真正的 Aqua 介面!對於 AppleScript 使用者來說,這是一個前所未有的激動人心的時刻。
《AppleScript: The Definitive Guide》從基礎開始探索和教授這門語言。如果你是初學者,想學習如何編寫你的第一個腳本,或只是想了解這一切的興奮所在,閱讀完這本書後,你將能夠做到。
有經驗的 AppleScripters 將會喜歡擁有這本最具權威性、最新的 AppleScript 語言參考。《AppleScript: The Definitive Guide》是這個重要 Mac 工具的典範指南。無論經驗水平如何,AppleScripters 都會一次又一次地參考這本書。
**目錄**
前言
**第一部分:AppleScript 概述**
1. 使用 AppleScript 的方式
- AppleScript 的性質和目的
- 這個應用程式可腳本化嗎?
- 計算和重複
- 簡化
- 自訂
- 結合專業
2. 使用 AppleScript 的地點
- 腳本編輯器
- 腳本環境
- 內部可腳本化應用程式
- 腳本執行器
- 自動位置
- 應用程式
- Unix
3. AppleScript 體驗
- 問題
- 一天的生活
- 結論、教訓和建議
4. 基本概念
- Apple 事件
- 開放腳本架構
- 腳本
- 編譯和反編譯
- 腳本文本檔
- Applet 和 Droplet
- 腳本擴充
- 字典
- 可腳本化、可記錄、可附加
**第二部分:AppleScript 語言**
5. 介紹 AppleScript
- 一種「小語言」
- 可擴展性及其危險
- 「類英語」怪物
- 物件相似性
- LISP 相似性
- 學習曲線
6. 語法基礎
- 行
- 結果
- 註解
- 縮寫和同義詞
- 區塊
- 其他
7. 變數
- 指派和檢索
- 變數的宣告和定義
- 變數名稱
- 變數的範圍
- 腳本屬性
- 變數的生命週期
8. 處理程序
- 返回值
- 參數
- 定義和調用處理程序的語法
- 參考傳遞
- 處理程序的範圍
- 處理程序作為值
9. 腳本物件
- 腳本物件的範圍
- 頂層實體
- 腳本物件的運行處理程序
- 處理程序調用
- 腳本物件作為值
- 編譯的腳本檔案作為腳本物件
- 繼承
10. 物件
- 類別
- 目標
- 獲取
- 它
- 我
- 屬性和元素
- 元素指定符
- 多重引用的屬性
- 物件字串指定符
11. 引用
- 引用作為咒語
- 創建引用
- 識別引用
- 解引用
- 創建對本地變數的引用
- 引用作為參數
12. 控制
- 分支
- 循環
- 告訴
- 使用術語
- 與
- 考慮/忽略
- 錯誤
- 第二級評估
13. 數據類型
- 布林值
- 整數、實數和數字
- 日期
- 字串
- Unicode 文本
- 樣式文本
- 檔案
- 別名
- 應用程式
- 機器
- 數據
- 列表
- 記錄
14. 強制轉換
- 隱式強制轉換
- 顯式強制轉換
- 布林強制轉換
- 字串、數字和日期強制轉換
- 檔案強制轉換
- 列表強制轉換
- 單位轉換
15. 運算符
- 算術運算符
- 布林運算符
- 比較運算符
- 包含運算符
- 串接運算符
- 括號
- 誰執行操作
16. 全局屬性
- 字串
- 數字
- 其他
17. 常數
18. 命令
- 應用程式命令
- 日誌命令
**第三部分:AppleScript 實踐**
19. 字典
- 術語的解析
- 解析困難
- 字典中的內容
- 'aeut' 資源
- 字典的不足
20. 腳本擴充
- 腳本擴充的優缺點
- 腳本擴充與速度
- 經典腳本擴充
- 載入腳本擴充
- 標準腳本擴充命令
21. 可腳本化應用程式
- 針對可腳本化應用程式
- 一些可腳本化應用程式
22. 不可腳本化應用程式
- 開始使用可及性
- GUI 腳本範例
23. Unix
- 執行 Shell 腳本
- osascript
24. 編寫應用程式
- Applets
- 數位中心腳本
- 資料夾動作
- CGI 應用程式
- AppleScript Studio
**附錄**
A. 'aeut' 資源
B. 工具和資源
索引