Changing colour/font of specific words in Pages

I am dealing with documents in Pages that have lots of words repeated for example the word 'Buyer'.


Is it possible to select the word Buyer throughout the text and change its font and colour, without changing anything else in the text?

MacBook Pro 13", macOS 10.14

Posted on May 7, 2019 11:07 AM

Reply
Question marked as Top-ranking reply

Posted on May 7, 2019 6:39 PM

Pages v8.0 does not of its own accord, support find/replace of text color or fonts within a document. This can be achieved using the following simple AppleScript with the target document already opened in Pages. You would copy/paste the following AppleScript into Script Editor (Dock : Launchpad : Other : Script Editor), click compile, and then run:


set wordList to {"Buyer"} -- can be more than one word to receive the same color and font
set theFont to "Bodoni-BookItalic" -- postscript font name from Font Book

set theColor to (choose color default color {0, 0, 0})

tell application "Pages"
	tell body text of front document
		repeat with aword in wordList
			set color of (words where it is aword) to theColor
			set font of (words where it is aword) to theFont
		end repeat
	end tell
end tell


And after selecting a nice shade of green...

1 reply
Question marked as Top-ranking reply

May 7, 2019 6:39 PM in response to alex101mac

Pages v8.0 does not of its own accord, support find/replace of text color or fonts within a document. This can be achieved using the following simple AppleScript with the target document already opened in Pages. You would copy/paste the following AppleScript into Script Editor (Dock : Launchpad : Other : Script Editor), click compile, and then run:


set wordList to {"Buyer"} -- can be more than one word to receive the same color and font
set theFont to "Bodoni-BookItalic" -- postscript font name from Font Book

set theColor to (choose color default color {0, 0, 0})

tell application "Pages"
	tell body text of front document
		repeat with aword in wordList
			set color of (words where it is aword) to theColor
			set font of (words where it is aword) to theFont
		end repeat
	end tell
end tell


And after selecting a nice shade of green...

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Changing colour/font of specific words in Pages

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.