How do I get the properties of objects around the frame from the frame

How do I get the properties of objects around the frame from the frame,I want to attach objects in onwaypath to objects around the frameattach