O'Reilly logo

AppleScript in a Nutshell by Bruce W. Perry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

Apple Guide

Syntax

tell application "Apple Guide"
   GoViewTopicAreas (* when a Guide window is open, go to the topics panel *)
   (* do other stuff with an open Apple Guide *)
end tell

Dictionary commands

Animate

If an animation object like a QuickTime movie exists in the open Apple Guide window, then this command is a signal for it to execute its animation. The following is an example of animate :

tell app "Apple Guide" to animate

Your script raises an error if you use this command and the open Apple Guide window does not have an animation.

Close

This command closes all the Apple Guide windows and the running database of help files. But it doesn’t close the Apple Guide program, which is still running invisibly in the background. You can still send the program an Apple event to open another application’s Guide files, for instance. Use Quit if you want to completely quit the Guide program so that it doesn’t use the machine’s memory anymore.

DoCoach

This command draws the coach mark that is defined for the current Apple Guide window, or it has no effect if the current panel has not defined a coach mark. If any of the Topics, Index, or Look For Apple Guide panels are active then this command raises an error.

CoachID integer

This optional parameter draws the coach mark associated with a particular id number, if any is defined for the active Guide panel or window.

DoHuh

If the beveled button with the “Huh?” label is active in the lower left corner of the Guide window, then issuing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required