Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Desperate - How can I delete an entire index at once?

792 views
Skip to first unread message

Lesley...@adobeforums.com

unread,
Nov 2, 2008, 6:22:46 PM11/2/08
to
I have accidentally entered the index references for a quarterly into the 'topics' panel when they should have been inthe 'reference' panel. (Darned radio buttons....)

There are dozens of entries and deleting them individually from the index will take ages. Surely there must be some way to remove all of the markings/topic entries without having to select each one individually and go through that process?

I have tried to find help items on how to do it, but have had no luck. This think has to be ready for proofing tomorrow and I'm getting exhausted trying to figure out what to do.

There must be a way! Please, can anyone help?!
Thanks so much if you can; you are a lifesaver.
Lesley

Fred_G...@adobeforums.com

unread,
Nov 2, 2008, 9:35:03 PM11/2/08
to
If they are just topics without references just choose "Remove Unused Topics" from the index panel flyout menu.

If you want to get rid of all references, too, then this script should do it:

myDoc = app.activeDocument
alert(myDoc.indexes[0].topics[0].topics[0].pageReferences.length)
for(var j= 0;myDoc.indexes[0].topics.length>j;j++){
myDoc.indexes[0].topics[j].pageReferences.everyItem().remove()
for(var h= 0;myDoc.indexes[0].topics[j].topics.length>h;h++){
myDoc.indexes[0].topics[j].topics[h].pageReferences.everyItem().remove()
}
}

Dave_S...@adobeforums.com

unread,
Nov 2, 2008, 10:35:20 PM11/2/08
to
Can't this be done by using Find/Change to find all Index markers and replace them with nothing?

Dave

Lesley...@adobeforums.com

unread,
Nov 3, 2008, 12:36:01 AM11/3/08
to
Fred and Dave, thank you. I had to do it the hard way, which meant deleting everything and reinputting, but it's done. Now, with your help, at least I have a couple of alternatives. There really ought to be an easier way!

Shall have to suggest this to Adobe....
Lesley

0 new messages