Here is a goal: When making macarons, what is the best way to put the batter on the baking tray?

Which way makes more sense to accomplish this goal?
Transfer the batter to a piping bag then squeeze it onto the prepared tray.