Applying boolean on a curved path

Hi, how can i get an object to follow this curved path and apply the boolean on it