Hello, how would I create a macro to set the following in the entire text (Cmd-A) of a Pages document:
Set color
Set font
Set font text size
thank you
Hello, how would I create a macro to set the following in the entire text (Cmd-A) of a Pages document:
Set color
Set font
Set font text size
thank you
Since @Tom provided an excellent macro to answer your question, I have moved it to the "macro" category where other users might look for Pages macros.
Thanks Tom!
Enjoy!
thanks !
thanks very much for your most interesting reply, and taking the time to address my problem.
thanks again.
How would I modify the macro in such a way that it would apply to selected text only?
Is there any way to make the macro usable in multiple apps, like Pages and also Notes
where would I find the names of the colours. I usually chose my colours from a nameless palette.
thanks again very much
I’m not an expert when it comes to color names used by AppleScript but maybe this may be a hint. I’m sure the AppleScript experts on this forum can tell you the exact reference for these color names.
In theory, yes. But every app has its own terminology. So you’ll have to make sure that it fits.
I’m not sure (I’m not scripting Pages, usually) but I think this can only be accomplished via UI scripting. If you are really interested in this I will write a macro for you. But, as always, UI scripting is the last recurse, and most of the time (or: many times) it will produce more problems than it solves.
Hello Tom,
Thanks again very much for your answers. I read your answers and did more research:
Hey Ronald,
You can't – at least in Pages 5.x – which has decimated the app's AppleScript dictionary. It no longer has a selection property.
Maybe in a future update.
-Chris
thank you Chris