Script to create a similar field between two layers

Discussion created by hotspotkid on May 29, 2013
I have to spatially join two separate layers together, who currently do not have any fields in common to join.

For example, lets say I have to join kids with the schools that are closest to the.  There is too much data to do this manually so I wanted to see if there is any way to make a script for this.

Is it possible to have a script that would give each school a specific attribute and then select all of the kids nearby and give the kids that same attribute?

Thank you