|
Chapter 1: Getting to Know AppleScript |
|
|
1 | (6) |
|
How does AppleScript work? |
|
|
3 | (1) |
|
What can I do with AppleScript? |
|
|
4 | (1) |
|
Open Scripting Architecture |
|
|
5 | (1) |
|
|
6 | (1) |
|
Chapter 2: Learning the Basics |
|
|
7 | (6) |
|
|
8 | (2) |
|
Scriptable applications and dictionaries |
|
|
10 | (1) |
|
Beware scripting additions |
|
|
11 | (1) |
|
|
12 | (1) |
|
Chapter 3: Let's Get Started |
|
|
13 | (30) |
|
|
14 | (1) |
|
|
15 | (1) |
|
|
16 | (1) |
|
|
17 | (3) |
|
The importance of lists and records |
|
|
20 | (2) |
|
Objects and references to them |
|
|
22 | (2) |
|
Comparisons and control statements |
|
|
24 | (2) |
|
Advanced comparisons for strings, lists, and records |
|
|
26 | (1) |
|
|
27 | (1) |
|
|
28 | (3) |
|
|
31 | (1) |
|
Using with timeout to wait |
|
|
32 | (1) |
|
|
33 | (2) |
|
Using comments to help yourself |
|
|
35 | (1) |
|
Simple interaction with the user |
|
|
36 | (1) |
|
|
37 | (2) |
|
Using on run and saving scripts as applications |
|
|
39 | (2) |
|
Making drag-and-drop applications with on open |
|
|
41 | (1) |
|
Other ways to save scripts |
|
|
42 | (1) |
|
Chapter 4: AppleScript on the Desktop |
|
|
43 | (28) |
|
|
44 | (2) |
|
|
46 | (2) |
|
Testing for the existence of a file |
|
|
48 | (1) |
|
Renaming all the files in a folder |
|
|
49 | (3) |
|
|
52 | (1) |
|
Creating a file from scratch |
|
|
53 | (2) |
|
|
55 | (2) |
|
Using folder actions in OS 8.5 |
|
|
57 | (1) |
|
Customizing the Application Switcher in OS 8.5 |
|
|
58 | (2) |
|
Customizing your Appearance in OS 8.5 |
|
|
60 | (2) |
|
Customizing File Exchange in OS 8.5 |
|
|
62 | (3) |
|
Finding files and searching the Web with Sherlock in OS 8.5 |
|
|
65 | (2) |
|
Switching, starting, and stopping Desktop printers in OS 8.5 |
|
|
67 | (2) |
|
Switching Location Manager sets in OS 8.5 |
|
|
69 | (2) |
|
Chapter 5: Open Transport and Networking |
|
|
71 | (16) |
|
Creating a TCP/IP configuration in OS 8.5 |
|
|
72 | (2) |
|
Enabling multi-homing with TCP/IP |
|
|
74 | (2) |
|
Switching TCP/IP configurations |
|
|
76 | (2) |
|
Scripting OT/PPP and Remote Access |
|
|
78 | (1) |
|
|
79 | (1) |
|
Maintaining a PPP connection |
|
|
80 | (1) |
|
Making a Remote Access connection |
|
|
81 | (2) |
|
Changing your file-sharing status |
|
|
83 | (1) |
|
Scripting the Users & Groups control panel |
|
|
84 | (3) |
|
Chapter 6: Scripting Your Web Browser |
|
|
87 | (20) |
|
Submitting form data from Netscape Navigator |
|
|
88 | (2) |
|
Submitting form data from Internet Explorer |
|
|
90 | (2) |
|
Printing local HTML files from Netscape Navigator |
|
|
92 | (2) |
|
Printing local HTML files from Internet Explorer |
|
|
94 | (3) |
|
Putting Netscape Navigator into kiosk mode |
|
|
97 | (1) |
|
Retrieving HTML source code with Internet Explorer |
|
|
98 | (1) |
|
Clearing the browser cache |
|
|
99 | (1) |
|
Deleting Netscape Navigator's cookies file |
|
|
100 | (2) |
|
Running AppleScripts from your browser |
|
|
102 | (5) |
|
Chapter 7: Scripting Emailer and Outlook Express |
|
|
107 | (30) |
|
Converting mail from Eudora or UNIX |
|
|
108 | (8) |
|
Converting mail from QuickMail Pro |
|
|
116 | (2) |
|
Filing mail based on keywords |
|
|
118 | (4) |
|
Sending replies based on keywords |
|
|
122 | (2) |
|
Forwarding mail based on keywords |
|
|
124 | (2) |
|
Faxing mail with faxSTF based on keywords from Emailer |
|
|
126 | (3) |
|
Importing mail into Microsoft Word based on Keywords |
|
|
129 | (2) |
|
Copying mail data to FileMaker Pro |
|
|
131 | (3) |
|
Creating a mailing list with FileMaker Pro |
|
|
134 | (3) |
|
Chapter 8: Scripting Eudora Pro |
|
|
137 | (14) |
|
Filing mail based on keywords |
|
|
138 | (4) |
|
Sending replies based on keywords |
|
|
142 | (2) |
|
Forwarding mail based on keywords |
|
|
144 | (2) |
|
Copying mail data to File Maker Pro |
|
|
146 | (2) |
|
Creating a mailing list with FileMaker Pro |
|
|
148 | (3) |
|
Chapter 9: Fetch and Anarchie for FTP |
|
|
151 | (14) |
|
|
152 | (2) |
|
Retrieving a file via FTP |
|
|
154 | (2) |
|
Retrieving a directory listing via FTP |
|
|
155 | (3) |
|
Updating a remote directory via FTP with Fetch |
|
|
158 | (4) |
|
Retrieving a file via HTTP with Anarchie |
|
|
162 | (1) |
|
Retrieving an entire site's files via HTTP with Anarchie |
|
|
163 | (2) |
|
Chapter 10: DataComet for telnet |
|
|
165 | (14) |
|
Reading a UNIX passed file or restarting a UNIX server |
|
|
166 | (5) |
|
Adding mail aliases to a UNIX server |
|
|
171 | (3) |
|
Retrieving an environment variable from a UNIX server |
|
|
174 | (3) |
|
Telnet to your Mac with Script Daemon |
|
|
177 | (2) |
|
Chapter 11: Building CGls |
|
|
179 | (20) |
|
|
180 | (1) |
|
|
181 | (3) |
|
|
184 | (5) |
|
|
189 | (1) |
|
Returning content via redirection |
|
|
190 | (2) |
|
Returning content from other scriptable applications |
|
|
192 | (2) |
|
Sending partial replies with WebSTAR |
|
|
194 | (2) |
|
Creating protected realms and users in WebSTAR |
|
|
196 | (3) |
|
Chapter 12: File Maker Pro for HTML |
|
|
199 | (10) |
|
|
200 | (1) |
|
Finding records in a content database |
|
|
201 | (1) |
|
Sorting the records in a content database |
|
|
202 | (1) |
|
Getting data from a record in a content database |
|
|
203 | (2) |
|
Creating a new record in a content database |
|
|
205 | (1) |
|
Merging data with templates to create HTML files |
|
|
206 | (3) |
|
Chapter 13: Microsoft Word for HTML |
|
|
209 | (10) |
|
Recording a script to modify type styles |
|
|
210 | (2) |
|
Modifying a recorded script for batch processing |
|
|
212 | (3) |
|
Batch exporting Word documents as HTML |
|
|
215 | (4) |
|
Chapter 14: CyberStudio for HTML |
|
|
219 | (10) |
|
Modifying, styling, and hyperlinking text |
|
|
220 | (2) |
|
Logging errors for a folder of HTML files |
|
|
222 | (3) |
|
Importing a tab-delimited file as a table |
|
|
225 | (1) |
|
Converting styled text in the clipboard to HTML |
|
|
226 | (3) |
|
Chapter 15: QuarkXPress for HTML and Images |
|
|
229 | (8) |
|
|
230 | (1) |
|
Importing and formatting HTML source code |
|
|
231 | (3) |
|
Exporting all pages in a document as EPS files |
|
|
234 | (1) |
|
Exporting all text from a document |
|
|
235 | (2) |
|
Chapter 16: Clip2gif and GifBuilder for Images |
|
|
237 | (12) |
|
Creating and exporting graphical text in clip2gif |
|
|
238 | (1) |
|
Creating graphical charts |
|
|
239 | (1) |
|
Converting images to GIFs with adaptive palettes |
|
|
240 | (1) |
|
Converting images to GIFs with the Web-safe palettes |
|
|
241 | (2) |
|
Making interlaced framed GIF images |
|
|
243 | (3) |
|
Creating animated GIFs of moving text |
|
|
246 | (3) |
|
Chapter 17: Images with Photoshop and PhotoScripter |
|
|
249 | (20) |
|
Creating and exporting graphical text |
|
|
250 | (5) |
|
Exporting each layer of a document as a separate file |
|
|
255 | (2) |
|
Importing a folder full of files into a document as layers |
|
|
257 | (3) |
|
Adding transparency to grayscale images |
|
|
260 | (4) |
|
|
264 | (1) |
|
Previewing an animation created as separate layers |
|
|
265 | (2) |
|
Exporting a layered document as an animated GIF with GifBuilder |
|
|
267 | (2) |
|
Chapter 18: Scripting with Apple Data Detectors |
|
|
269 | (6) |
|
Creating Apple Data Detector action scripts |
|
|
270 | (1) |
|
Detecting e-mail addresses and adding them to an address book |
|
|
271 | (2) |
|
|
273 | (1) |
|
Detecting a URL and displaying links with Alta Vista |
|
|
274 | (1) |
|
Chapter 19: Using Timbuktu Pro to Control Windows |
|
|
275 | (6) |
|
Restarting a Windows NT server |
|
|
276 | (2) |
|
Synchronizing a folder on your Mac and PC |
|
|
278 | (3) |
|
Chapter 20: Scripting Mail and List Servers |
|
|
281 | (10) |
|
Converting all list subscribers to non-posting |
|
|
282 | (1) |
|
Subscribing a user to a mailing list |
|
|
283 | (1) |
|
Setting a mailing list's subject line prefix |
|
|
284 | (1) |
|
Adding a user account to EIMS 2.x |
|
|
285 | (2) |
|
|
287 | (1) |
|
Subscribing a user to a mailing list |
|
|
288 | (1) |
|
Sending mail to a mailing list's subscribers |
|
|
289 | (1) |
|
Enabling and disabling a mailing list |
|
|
290 | (1) |
|
Chapter 21: Marionet for Scripting the Internet |
|
|
291 | (10) |
|
|
292 | (1) |
|
Resolving a DNS name to an IP address |
|
|
293 | (2) |
|
Sending mail directly via an SMTP server |
|
|
295 | (2) |
|
|
297 | (1) |
|
Retrieving a newsgroup's article list with NNTP |
|
|
298 | (2) |
|
Retrieving files from a Web server with HTTP |
|
|
300 | (1) |
|
Chapter 22: The Big Project: A Web Server Monitor |
|
|
301 | (4) |
|
Monitoring a Web server by retrieving a file |
|
|
302 | (3) |
|
Chapter 23: Giving Your Scripts a Face |
|
|
305 | (10) |
|
Creating a window with controls |
|
|
306 | (1) |
|
Entering the project script |
|
|
307 | (5) |
|
Adding scripts to window controls |
|
|
312 | (2) |
|
Saving a project as an application |
|
|
314 | (1) |
|
Chapter 24: Debugging AppleScript |
|
|
315 | (8) |
|
Debugging with the Script Editor |
|
|
316 | (2) |
|
|
318 | (1) |
|
Debugging with Script Debugger |
|
|
319 | (1) |
|
|
320 | (1) |
|
Proper system software configurations for AppleScript |
|
|
321 | (2) |
Appendix A: AppleScript Reference |
|
323 | (8) |
Appendix B: To Learn More About AppleScript |
|
331 | |