a measure of the weight (which is what a regular scale measures) gives us directly the mass.
To measure mass in space, we have to use another kind of scale, which is called an inertial balance. An inertial balance is made of a spring on which you attach the object whose mass you’re interested in. The object is therefore free to vibrate, and for a given stiffness of the spring the frequency of the vibrations enables the scientists to calculate the mass.
The current devices for measuring mass (be it weighing scale, mass balance etc) all works by measuring the force rather than the mass (since g is assumed to be constant, F α m).
Does air weigh anything?