Publishers of technology books, eBooks, and videos for creative people

Home > Blogs > Bill Cheeseman

RSS FeedSubscribeRSS details

Using AppleScript to enable GUI Scripting, Five AppleScript Tips in Five Days

You can use AppleScript to control applications on a Mac even if they aren't scriptable by design. You do this by using GUI Scripting, an AppleScript technology that lets you control any application through its graphical user interface, such as clicking buttons, choosing menu commands, and sending keystrokes to text fields.

Continue reading...

Using AppleScript's built-in database tool, Five AppleScript Tips in Five Days

Scripters often need to save the data used by their scripts on a disk so that it remains available when the script is used again at a later time. Traditionally, scripters have used text files or the somewhat technical File Read/Write suite of commands in AppleScript's StandardAdditions scripting addition for this purpose.

Continue reading...

Using AppleScript to work with text, Five AppleScript Tips in Five Days

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.

Continue reading...

Catching errors in your scripts, Five AppleScript Tips in Five Days

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.

Continue reading...

Using AppleScript to control the Finder, Five AppleScript Tips in Five Days

AppleScript is an easy-to-learn scripting language for the rest of us that is available on every Macintosh computer sold in the last decade and a half. You can write a simple AppleScript script in just a few minutes to save hours of drudgery later by automating a complex repetitive task. Once you've written the script, you only have to double-click it any time you need to get the job done.

Continue reading...