Tuesday, January 08, 2008

How do I create macros in Pages?

The way to create macros in Pages 3.0 is to use AppleScript.

Unfortunately, Pages is not recordable, unlike some programs where you can record a series of actions you perform into an editable script. For Pages you will have to create your scripts manually.

To see what kind of things can be done with Pages, open Applications > AppleScript > Script Editor, and go to the menu File > Open Dictionary > Pages.

To see some examples of scripts people already have made for Pages, make a Google search for "tell application pages".

To get a list of resources about AppleScript in general, use for example Wikipedia.

There is currently no way to add menus or buttons with your own scripts to Pages' menus or toolbars.


Pages' AppleScript dictionary as displayed in Script Editor.

No comments: