Muutke küpsiste eelistusi

Apple Automator with AppleScript Bible [Pehme köide]

  • Formaat: Paperback / softback, 576 pages, kõrgus x laius x paksus: 236x190x31 mm, kaal: 842 g, Illustrations, Contains 1 Digital online
  • Sari: Bible
  • Ilmumisaeg: 13-Nov-2009
  • Kirjastus: John Wiley & Sons Ltd
  • ISBN-10: 047052586X
  • ISBN-13: 9780470525869
Teised raamatud teemal:
  • Pehme köide
  • Hind: 50,49 €*
  • * saadame teile pakkumise kasutatud raamatule, mille hind võib erineda kodulehel olevast hinnast
  • See raamat on trükist otsas, kuid me saadame teile pakkumise kasutatud raamatule.
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 576 pages, kõrgus x laius x paksus: 236x190x31 mm, kaal: 842 g, Illustrations, Contains 1 Digital online
  • Sari: Bible
  • Ilmumisaeg: 13-Nov-2009
  • Kirjastus: John Wiley & Sons Ltd
  • ISBN-10: 047052586X
  • ISBN-13: 9780470525869
Teised raamatud teemal:
One-stop reference helps you get the most out of AppleScript and Automator One of the handiest ways to streamline your workload is to automate some of your most routine computer tasks. Mac users are lucky in that they have AppleScript and Automator automation tools built right in. This comprehensive guide shows you how to tap both these useful Mac features for Mac OS X and regularly perform such tasks as extracting unread e-mails from your Mail, scheduling workflows, and manually recording actions to create new automated routines.* Brings you up to speed on Apple's built-in automation tools for Mac OS X, including a more thorough look at Automator than in many books, and shows you how you can automate many of your most repetitive or error-prone tasks* Explains how to automate aspects of some of your favorite Mac features, such as iCal, Mail, iPhoto, iTunes, and iDVD* Covers how to manipulate files and folders; work with PDFs, emails, and Web pages; schedule workflows; set up watch folders; create and use variables; manually record actions; and create AppleScripts that further automate functions The instruction in this detailed guide will help you increase your productivity using Automator and AppleScript. Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.
Preface xxix
Acknowledgments xxx
Introduction xxxi
Quick Start: Dive into Automator and AppleScript 1(1)
Why Is Automation Important?
2(1)
Who Uses Automation?
3(1)
Introducing Automator
4(13)
Actions
6(2)
Variables
8(1)
Creating your first basic workflow
9(5)
Customizing your first workflow
14(3)
Options for saving your workflow
17(1)
Introducing AppleScript
17(11)
Summary
28(1)
Part I: The Fundamentals of Automation
29(78)
What Is Automation?
31(16)
Why You Should Use Automation
31(2)
A Brief History of Automation
33(3)
Differences between mechanization and automation
34(1)
Negative connotations of automation
35(1)
Positive changes due to automation
35(1)
Examples of Automation
36(7)
Data entry or collection
36(1)
Data analysis
37(1)
Data munging
37(2)
Data extraction
39(1)
Data transformation
39(1)
Data integration
39(1)
Launching applications and scripts
40(1)
Communications
41(1)
Setting up reminders
42(1)
Systems maintenance and backups
43(1)
Why Automate?
43(3)
Save time
43(1)
Save effort
44(1)
Simplify a process
45(1)
Reduce errors
45(1)
Save on manpower
46(1)
Save money
46(1)
Summary
46(1)
Automation from a User's Perspective
47(14)
The Mac User's Viewpoint
47(6)
Typical activities to automate
48(1)
Taking inventory
49(4)
The Professional's Viewpoint
53(3)
The software developer's needs
53(1)
The system administrator's needs
54(1)
The creative's needs
55(1)
The Small Business Owner's Viewpoint
56(4)
What processes need automating?
57(1)
What files and data need automating?
58(1)
Where's the ROI?
59(1)
Summary
60(1)
Automator Basics
61(22)
Opening Automator for the First Time
61(1)
The Automator Interface
62(8)
The Toolbar
63(1)
The Actions library
63(2)
The Variables library
65(2)
The Footer
67(3)
What Are Workflows?
70(1)
What Kinds of Workflows Are Possible?
71(3)
What Are Actions?
74(2)
What Else Can I Do with Actions?
76(2)
How Can Workflows Be Saved?
78(3)
Save as workflow
78(1)
Save as application
79(1)
Save as plugin
80(1)
What Are Templates?
81(1)
Summary
82(1)
Advanced Automator Topics
83(24)
Working with Variables
84(10)
What is a variable?
84(2)
Types of variables
86(1)
Date & Time variables
87(1)
Locations variables
88(1)
System variables
88(1)
Text & Data variables
89(2)
User variables
91(1)
Utilities variables
91(2)
Adding variables to workflows
93(1)
Using variables in a workflow
93(1)
Working with Loops
94(4)
What is a loop?
94(1)
Setting up a loop
95(3)
A Closer Look at Plugins
98(4)
Finder plugins
98(1)
Calendar plugins
99(2)
Other plugins
101(1)
Recording Manual Events
102(4)
First things first: Set up accessibility
102(1)
Recording a manual event
103(3)
Summary
106(1)
Part II: A Detailed Look at AppleScript
107(162)
AppleScript Basics
109(16)
What Is AppleScript?
109(1)
A Brief History of AppleScript
110(2)
Why AppleScript?
112(1)
AppleScript Editor
112(5)
Starting AppleScript Editor
113(1)
The AppleScript Editor GUI
113(1)
Basic operations
114(1)
Comments and error messages
114(2)
Saving your scripts
116(1)
The AppleScript Editor Menus
117(7)
AppleScript Editor menu
118(2)
File menu
120(1)
Edit menu
121(1)
View menu
121(1)
Script menu
121(1)
Font menu
122(1)
Format menu
122(1)
Window menu
122(1)
Help menu
123(1)
The Script Menu
124(1)
Summary
124(1)
AppleScript Objects and Dictionaries
125(18)
What Are Objects?
125(8)
AppleScript is an object-oriented language
126(1)
Everything you work with is an object
127(2)
Objects include properties and actions
129(1)
Even the script you're working with is an object
130(1)
A quick tour of script objects
131(2)
What Are Dictionaries?
133(1)
How to Use Dictionaries
134(1)
A Quick Tour of Dictionaries
135(6)
Viewing by suite
138(1)
Viewing by containment
139(1)
Viewing by inheritance
140(1)
Looking Up an AppleScript
141(1)
Summary
142(1)
Working with Variables and Properties
143(16)
What Are Variables?
143(10)
Creating variables
144(2)
Getting the value of a variable
146(1)
Working with lists
146(5)
Working with records
151(1)
Global variables
152(1)
What Are Properties?
153(1)
Creating Three Simple Scripts
154(3)
Script 1: Play random iTunes track
154(1)
Script 2: Copy files from one directory to another
155(1)
Script 3: View today's events in iCal
156(1)
Summary
157(2)
Operators, Expressions, and Statements
159(20)
What Are Operators?
159(11)
Logical operators
160(1)
Logical conjunction (and)
161(1)
Logical disjunction (or)
161(1)
Negation (not)
161(1)
Equality
162(1)
Inequality
162(1)
Greater than
163(1)
Less than
163(1)
Greater than or equal to
163(1)
Less than or equal to
163(1)
Mathematical operators
164(1)
Multiplication (*)
164(1)
Addition (+)
164(1)
Subtraction (-)
164(1)
Division (/)
164(1)
Integral division (div)
165(1)
Modulus (mod)
165(1)
10 mod 3 -- results in 1Exponentiation (^)
165(1)
Other operators
165(1)
Concatenation
165(1)
Containment
166(1)
Object reference
167(1)
Operator precedence
167(1)
What is coercion?
168(1)
Considering and ignoring
169(1)
What Are Expressions?
170(2)
What Are Statements?
172(1)
Writing Scripts
173(5)
Script 1: Checking for e-mail validity
173(2)
Script 2: Inspect the Trash
175(3)
Summary
178(1)
Conditionals and Loops
179(18)
What Are Conditional Tests and Loops?
179(1)
Conditional Tests
180(5)
The if test
180(1)
The two-value if test
181(1)
The multi-value if test
182(3)
Repeating Loops
185(8)
Repeating forever
185(1)
Repeating a set number of times
186(1)
Repeating with defined start and stop values
187(2)
Repeating until something is true
189(1)
Repeating while something is true
190(1)
Repeating with a list
191(2)
Writing Scripts
193(2)
Script 1: Check if folder exists
193(1)
Script 2: Export e-mail addresses
194(1)
Summary
195(2)
Handling User Input
197(16)
What Is User Input?
197(1)
Sending a Message to the User
198(5)
The beep command
198(1)
The say command
199(1)
The display dialog command
200(3)
Asking for Text Input
203(1)
Working with Buttons
204(2)
Choosing Folders and Files
206(2)
Choosing from a List
208(2)
Choosing an Application
210(1)
Summary
211(2)
AppleScript Subroutines
213(14)
What Are Subroutines?
213(2)
Defining a Subroutine
215(1)
Running a Subroutine
216(2)
Using Loops, Conditionals, and Variables in Subroutines
218(1)
Recursive Subroutines
218(1)
Reusing Subroutines
219(2)
Some Useful Subroutines
221(5)
Subroutine 1: Create a folder
221(2)
Subroutine 2: Move an item to the Trash
223(2)
Subroutine 3: Count items in a folder
225(1)
Summary
226(1)
Applets and Droplets
227(14)
What Are Applets?
227(1)
Three Applets
228(6)
Open a Web page in Safari
228(3)
Run a shell script
231(2)
Get file size
233(1)
What Are Droplets?
234(1)
Two Droplets
234(5)
Get file size
234(3)
Set the desktop background
237(2)
Summary
239(2)
Folder Actions
241(14)
What Are Folder Actions?
241(1)
Enabling Folder Actions
242(2)
Folder Action Scripts
244(2)
Creating Your First Folder Action Script
246(4)
Creating Folder Action Plug-ins with Automator
250(4)
Summary
254(1)
AppleScript Studio
255(14)
What Is AppleScript Studio?
255(1)
How Do You Access AppleScript Studio?
256(2)
What Can You Do with AppleScript Studio?
258(1)
Pros and Cons
259(1)
Your First AppleScript Studio Project
259(8)
Summary
267(2)
Part III: Automation Projects
269(158)
Ten Automation Projects for Files and Folders
271(34)
The Projects
271(2)
Creating a Basic Workflow to Process Specific Files
273(3)
Using Automator
273(2)
Using AppleScript
275(1)
Advanced topics
275(1)
Converting a Basic Workflow to Accept any Files
276(4)
Using Automator
276(1)
Using AppleScript
277(1)
Advanced topics
277(3)
Finding Files and Folders and Renaming Them
280(4)
Using Automator
280(2)
Using AppleScript
282(2)
Finding Files and Folders and Trashing Them
284(2)
Using Automator
284(1)
Using AppleScript
285(1)
Advanced topics
286(1)
Creating Aliases for Files and Folders
286(3)
Using Automator
287(1)
Using AppleScript
288(1)
Advanced topics
288(1)
Filtering Finder Items
289(4)
Using Automator
289(1)
Using AppleScript
290(1)
Advanced topics
291(2)
Connecting to a Server
293(1)
Using Automator
293(1)
Using AppleScript
294(1)
Getting Folder Contents
294(3)
Using Automator
294(1)
Using AppleScript
295(1)
Advanced topics
296(1)
Opening Files with the Proper Application
297(2)
Using Automator
297(1)
Using AppleScript
297(1)
Advanced topics
298(1)
Setting Spotlight Comments for Files and Folders
299(4)
Using Automator
299(2)
Using AppleScript
301(1)
Advanced topics
302(1)
Summary
303(2)
Ten Automation Projects for Music and Audio Files
305(30)
The Projects
305(1)
Playing a Specific iTunes Song
306(6)
Using Automator
306(3)
Using AppleScript
309(1)
Advanced topics
310(2)
Adding Songs to a Playlist
312(4)
Using Automator
313(1)
Using AppleScript
314(1)
Advanced topics
315(1)
Filtering iTunes Songs
316(2)
Using Automator
316(1)
Advanced topics
317(1)
Setting iTunes Volume
318(3)
Using Automator
319(1)
Using AppleScript
319(1)
Advanced topics
320(1)
Pausing and Playing iTunes
321(2)
Using Automator
322(1)
Using AppleScript
322(1)
Advanced topics
323(1)
Setting Information on iTunes Songs
323(4)
Using Automator
323(1)
Using AppleScript
324(3)
Removing Empty Playlists
327(1)
Changing Case of Song Names
328(2)
Using Automator
328(1)
Advanced topics
329(1)
Converting Text to Audio Files
330(2)
Using Automator
330(1)
Using AppleScript
331(1)
Advanced topics
332(1)
Adding Audio Files to an iPod
332(2)
Using Automator
333(1)
Using AppleScript
333(1)
Advanced topics
333(1)
Summary
334(1)
Ten Automation Projects for Photos and Images
335(36)
The Projects
335(1)
Applying Color Changes to Groups of Images
336(6)
Using Automator
336(3)
Using AppleScript
339(3)
Advanced topics
342(1)
Cropping and Resizing Images
342(7)
Using Automator
342(2)
Using AppleScript
344(3)
Advanced topics
347(2)
Creating Thumbnails
349(3)
Using Automator
349(1)
Advanced topics
350(2)
Converting Images
352(2)
Using Automator
352(1)
Using AppleScript
352(1)
Advanced topics
353(1)
Flipping and Rotating Images
354(5)
Using Automator
354(1)
Using AppleScript
355(2)
Advanced topics
357(2)
Finding Specific Images
359(2)
Using Automator
359(2)
Advanced topics
361(1)
Importing Images to iPhoto
361(3)
Using Automator
361(1)
Advanced topics
362(2)
Exporting Images from iPhoto
364(1)
Reviewing Photos in a PDF Contact Sheet
365(3)
Using Automator
366(1)
Advanced topics
367(1)
Automating Taking Pictures with a Digital Camera
368(1)
Using Automator
368(1)
Using AppleScript
369(1)
Summary
369(2)
Ten Automation Projects for Text Files
371(28)
The Projects
371(2)
Opening Text Files
373(3)
Using Automator
373(2)
Using AppleScript
375(1)
Advanced topics
375(1)
Asking for Text from the User
376(3)
Using Automator
376(1)
Using AppleScript
377(1)
Advanced topics
378(1)
Getting a Specific Word
379(3)
Using AppleScript
379(2)
Advanced topics
381(1)
Getting a Specific Character
382(1)
Using AppleScript
382(1)
Advanced topics
383(1)
Getting a Specific Paragraph
383(4)
Using Automator
383(1)
Using AppleScript
384(3)
Combining Text Files
387(3)
Using Automator
387(1)
Using AppleScript
388(1)
Advanced topics
389(1)
Getting the Definition of a Word
390(3)
Using Automator
390(1)
Using AppleScript
391(1)
Advanced topics
392(1)
Using BBEdit: Working with Quotes
393(2)
Using Automator
394(1)
Using AppleScript
395(1)
Using BBEdit: Convert Spaces to Tabs
395(1)
Using Automator
395(1)
Using AppleScript
396(1)
Using BBEdit: Zapping Gremlins
396(2)
Using Automator
396(1)
Using AppleScript
397(1)
Summary
398(1)
Ten Custom Automation Projects
399(28)
The Projects
399(1)
Finding Specific Contacts in Address Book
400(3)
Using Automator
400(1)
Using AppleScript
401(1)
Advanced topics
402(1)
Finding People with Birthdays
403(3)
Using Automator
403(1)
Advanced topics
404(2)
Creating a Group Mailer
406(3)
Using Automator
406(1)
Advanced topics
406(3)
Finding Specific Calendar Items
409(1)
Using Automator
409(1)
Using AppleScript
410(1)
Advanced topics
410(1)
Getting New Mail Messages
410(3)
Using Automator
410(1)
Using AppleScript
411(1)
Advanced topics
412(1)
Combining Mail Messages
413(3)
Using Automator
413(2)
Advanced topics
415(1)
Adding Attachments to Messages
416(3)
Extracting Text from PDFs
419(3)
Using Automator
419(2)
Advanced topics
421(1)
Extracting PDF Pages
422(1)
Downloading Specific URLs
423(2)
Summary
425(2)
Part IV: Appendixes
427(85)
Appendix A: Automator Resources
429(10)
Web-Based Tutorials
429(1)
VTC Mac OS X Automator tutorials
429(1)
Automatorus
430(2)
Online Community
432(1)
Automator World
432(2)
Automator-dev mailing list
434(1)
Tools and Downloads
434(1)
Photoshop Action Pack
434(1)
OttoMate
435(1)
Automated Workflows
436(1)
Training
437(1)
Automated Workflows
437(1)
TECSoft
438(1)
Summary
438(1)
Appendix B: AppleScript Resources
439(12)
Web-Based Tutorials
439(1)
MacResearch AppleScript tutorials
439(2)
MacScripter
441(1)
MacTech
442(2)
Video tutorials on the Web
444(1)
Online Community
445(1)
MacScripter
445(1)
Tools and Downloads
446(1)
Doug's AppleScripts for iTunes
446(1)
AppleScript downloads on CNET
447(1)
Training
448(1)
Summary
449(2)
Appendix C: AppleScript Reference
451(34)
Class Reference
452(1)
Alias
452(1)
Properties
452(1)
Coercions
453(1)
Example
453(1)
Application
453(1)
Properties
453(1)
Coercions
454(1)
Example
454(1)
Boolean
454(1)
Properties
454(1)
Operators
454(1)
Coercions
454(1)
Example
455(1)
Class
455(1)
Properties
455(1)
Operators
456(1)
Coercions
456(1)
Example
456(1)
Constant
456(1)
Properties
456(1)
Operators
456(1)
Coercions
456(1)
Example
456(1)
Date
457(1)
Properties
457(1)
Operators
457(1)
Coercions
457(1)
Examples
458(1)
File
458(1)
Coercions
458(1)
Example
458(1)
Integer
459(1)
Properties
459(1)
Operators
459(1)
Coercions
459(1)
Examples
459(1)
List
459(1)
Properties
459(1)
Coercions
460(1)
Examples
460(1)
Number
460(1)
Properties
461(1)
Operators
461(1)
Coercions
461(1)
Examples
461(1)
POSIX file
461(1)
Properties
461(1)
Coercions
461(1)
Example
461(1)
Real
462(1)
Properties
462(1)
Operators
463(1)
Coercions
463(1)
Examples
463(1)
Record
463(1)
Properties
464(1)
Operators
464(1)
Coercions
465(1)
Example
465(1)
Script
465(1)
Properties
465(1)
Coercions
465(1)
Example
465(1)
Text
465(1)
Properties
465(1)
Elements
466(1)
Coercions
466(1)
Examples
466(1)
Commands Reference
466(3)
Operators Reference
469(1)
Logical operators
470(1)
Logical conjunction (and)
470(1)
Logical disjunction (or)
470(1)
Negation (not)
470(1)
Equality
470(1)
Inequality
470(1)
Greater than
471(1)
Less than
471(1)
Greater than or equal to
471(1)
Less than or equal to
471(1)
Mathematical operators
472(1)
Multiplication (*)
472(1)
Addition (+)
472(1)
Subtraction (-)
472(1)
Division (/)
472(1)
Integral division (div)
472(1)
Remainder (mod)
472(1)
Exponentiation (^)
473(1)
Other operators
473(1)
Concatenation
473(1)
Containment
473(1)
Control Statements Reference
474(1)
Considering and ignoring
474(1)
If
474(1)
Repeat
475(2)
Tell
477(1)
Try
478(1)
Handler Reference
478(2)
AppleScript Reserved Keywords
480(3)
AppleScript Error Numbers
483(1)
Summary
484(1)
Appendix D: Automator Actions and Variables
485(27)
Actions
485(1)
Calendar
486(1)
Contacts
487(1)
Files & Folders
488(2)
Fonts
490(2)
Internet
492(2)
Mail
494(1)
Movies
495(2)
Music
497(2)
PDFs
499(2)
Photos
501(2)
Text
503(2)
Utilities
505(1)
Most Used
506(1)
Variables
507(1)
Date & Time
507(1)
Locations
508(1)
System
509(1)
Text & Data
510(1)
User
511(1)
Utilities
511(1)
Summary
512
Thomas Myer is a consultant, technical author, and speaker. He owns Triple Dog Dare Media and specializes in many aspects of Linux- and Mac-based development, including Web content management systems, blogs, wikis, dashboard widgets, iPhone applications, UNIX systems programming, and Applescripting. He is the author of five books, including Professional CodeIgniter and Mac OS X UNIX Toolbox.