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

ero87

macrumors 65816
Original poster
Jan 17, 2006
1,196
1
New York City
Hi friends,

I was wondering if someone could do me a favor... I need an applescript that will select every other word in a block of text in Pages. i.e., it would select words 1, 3, 5, 7, etc. I then plan to change these words the color blue. I can go through this manually, but it will take forever. Is this kind of script possible?

Thanks so much for any help you can give! :)
 
This subroutine should do the trick for determining if an integer is odd or not, I'll leave someone else to complete the entire function though or try to do it for you later if I get more time

Code:
on is_odd(this_number)
 if this_number mod 2 is not 0 then
 return true
 else
 return false
 end if
end is_odd
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.