Unfortunately, I won't be able to open your file.
If you look at my example, the parts you need to change are the index for "$results". And the indices for your gum faces. Ignoring any scripting, if you go through the process manually, take note of the step where you separate the eyes and teeth. What is the name of the resulting mesh that contains the gums?
Now look in the Script Editor window. In the upper text field, look from the bottom up for a line that starts with "polySeparate". Now look at the line just under that. It will start with "// Result:". Look for the name of the mesh with the gums and count which name it is on that line. Your index will be that number minus 1. For instance, if it is the second name on the line, then your index is 1.
In my example script, replace "$results[0]" with "$results[1]".
Now select the faces that make up the gums and extract them. Again, in the Script Editor window, in the upper text field, look from bottom up for a line starting with "polyChipOff". Note towards the end of the line, it will have something with the name of the gum mesh and ".f[]". There will be some numbers and a colon between the brackets. Those are your faces. I'm hoping there's only one set of "f.[]". Let me know if there are more than one and I'll tell you how to deal with that.
In my script, replace my "0:10" with the numbers you found. That should be it. Just select all the remaining meshes that you need to act on and run the script.