Publishers of technology books, eBooks, and videos for creative people
AppleScript comes with many built-in objects and commands for reading and manipulating text. Most scriptable word-processing applications include similar objects and commands along with additional objects and commands for complex scripting scenarios. But for basic text manipulation, you can use AppleScript's built-in features without telling an application to help you out.
Sometimes you might write an AppleScript script that looks right and that even compiles correctly but that doesn't work right when you run it. The error message that AppleScript presents in cases like this isn't always very helpful, but you can customize it using a 'try' block and catching any error that occurs at run time.
© 2018 Pearson Education, Peachpit. All rights reserved.