Creates a new scratch file from the selected fragment.