Wash garlic scapes thoroughly under cold water.
Trim tough ends from each scape.
Cut scapes into 4-inch pieces.
Toss cut scapes with salt.
Let salted scapes sit for 30 minutes.
Rinse scapes and pat them dry.
Pack scapes tightly into clean jars.
Combine vinegar, water, sugar in saucepan.
Add salt, peppercorns, bay leaves, pepper flakes.
Bring brine mixture to rolling boil.
Pour hot brine over packed scapes.
Leave half-inch headspace in jars.
Seal jars and let them cool.
Refrigerate for at least 24 hours.