FInd and Replace in Pages

Can I Find and Replace normal text in a Pages document with italic font? My efforts only result in finding and replacing the normal font with normal font.

MacBook Air 11″, macOS 10.15

Posted on May 19, 2021 11:08 AM

Reply

Similar questions

3 replies

May 20, 2021 9:54 AM in response to Staynavytom

One could construct an AppleScript to find all occurrences of a Pages italic font and replace it with the same or different font attribute. Open. your Pages document with the italic text you want to fix. Copy and paste the following script into the Script Editor. Edit the font(s) as needed, and then click Run.


-- change all body text matching specific font attributes to another font
-- Refer to Font Book for the specific font name
-- Caveat: You better be using true black text, otherwise {0,0,0} will not match

tell application "Pages"
	tell body text of front document
		
		if its font is "Verdana-italic" and its size is 12 and its color is {0, 0, 0} then
			set its font to "Helvetica"
			set its color to "blue"
			set its size to 14
		end if
		
	end tell
end tell


If the script does what you need, don't forget to save the Pages document, though autosave should handle it.

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.

FInd and Replace in Pages

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