In Words I programmed
a macro shortcut that let me click on the page and
put today's date where I wanted it, without opening a
couple of menus first. Is there any way of doing
macros in Pages or otherwise setting up shortcuts
like that? There seems to be nothing in the user's
guide.
I wanted the same as you, and I wrote a little applescript to do so :
-- A script to insert date and time in the Pages front doc (can use it with every app, just replace "Pages" by the name of your app). It doesn't make use of Pages built-in date and/or time insertion feature, but of the system wide one. Just save the script in your ~/Library/Scripts and it will appear in the script menu, in the menu bar (if you have enable it) ; then, assign a keyboard shortcut to it, with one of the various app that can do so — I use Insanity's MenuMaster, and it works well. With this whole process, I have added to Pages a lot of keyboard shortcuts : to some characters I use often, to paragraph styles…
set the clipboard to ((current date) as string)
tell application "Pages" to activate
tell application "System Events" to tell process "Pages"
tell menu bar 1
tell menu 1 of menu bar item "Édition"
click menu item "Coller"
end tell
end tell
end tell