Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

acevh3

macrumors newbie
Original poster
Aug 1, 2009
1
0
Here is a simple applescript that will modify all the paragraphs in a Pages document to have a "space after" setting of 4:

tell front document of application "Pages"
set space after to 4
end tell

What I really want is to pre-select only certain paragraphs, then run the script and have it act only on those paragraphs. How can I make it act only on the selected text?
Thanks for any suggestions.
 
I've done just some quick testing, but this seems to work:

Code:
tell application "Pages"
	get the selection
	set space after of the result to 14.0
end tell

mt
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.