How to select bold text only?

I have pasted some text into a pages document which contains both bold and regular text. I want to delete all of the regular text and keep only the bold text. As the document is 106 pages long, is there an easy way to do this? i.e Can I somehow select only the bold text?

Dual 2.3 GHz G5 G5 2.5gig RAM and 1.5 GHZ PB, Mac OS X (10.4.4)

Posted on Feb 21, 2006 3:45 PM

Reply
5 replies

Feb 23, 2006 12:59 AM in response to jeremy smith12

This AppleScript should select all bold text in a Pages 2 document.

The script should be pasted into Script Editor and should be on one line.

<pre>tell application "Pages" to select (every character of body text of front document whose bold is true)</pre>

To delete all bold text just replace "select" with "delete". That is:

<pre>tell application "Pages" to delete (every character of body text of front document whose bold is true)</pre>

Dale

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.

How to select bold text only?

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