Page 1 of 1

Want to Make an Index Maker

Posted: Mon Aug 01, 2011 10:54 pm
by trailboss
The inexpensive word processor for Mac, Pages 09 has a table of contents creator but doesn't make an index.
I thought it would be fun to make a program that would make an index.

I remember in HyperCard, you could open Word Files and things. I'm guessing it might be possible to get RunRev to open a Pages WP file, look for words in the document, find the page numbers where they are, and then create an index.

I need to know then, how to open a Pages document, search inside, and gather and sort data. I hope it's possible. We Pages users would love to have an index feature that Apple has refused to add.

Ideas? If it's possible I think I would only need to know a few new things: how to launch Pages, how to look in and search and so on.

Thanks
Tom

Re: Want to Make an Index Maker

Posted: Tue Aug 02, 2011 5:27 pm
by jacque
You can launch Pages from within LiveCode, but after that you can't control it. But you could use AppleScript to do the work, and have it return the results to your script.

Re: Want to Make an Index Maker

Posted: Tue Aug 02, 2011 8:28 pm
by trailboss
I see. I guess I'll have to learn how to use applescript.
Thanks