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
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
The Pages Find and Replace tool is quite obtuse, and has no means to focus on font attributes such as italic.
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.
Thanks for the clarification. And thanks for adding another word to my lexicon...obtuse. I have only used it in reference to geometric angles.
Do you know of any tricks to change font to italics? I'm writing a lengthy document about Navy ships and their names should be in italics.
FInd and Replace in Pages