Want to Make an Index Maker

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trailboss
Posts: 121
Joined: Sat Dec 13, 2008 4:55 pm

Want to Make an Index Maker

Post by trailboss » Mon Aug 01, 2011 10:54 pm

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7228
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Want to Make an Index Maker

Post by jacque » Tue Aug 02, 2011 5:27 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

trailboss
Posts: 121
Joined: Sat Dec 13, 2008 4:55 pm

Re: Want to Make an Index Maker

Post by trailboss » Tue Aug 02, 2011 8:28 pm

I see. I guess I'll have to learn how to use applescript.
Thanks

Post Reply

Return to “Talking LiveCode”