Join script

can i make a script that manage me to join all elements from any categories that is only intersected not all of the elements, because when i use the usual method there will be a millions of warnings about that the elements are joined but not intersected, also if i ignored those errors this will affect the quantites of schedules or something ?! ( sorry for my bad english )