Would a spring loaded mechanism outside a spacecraft activate a lever faster or slower in space with no atmosphere and gravity...
Let's assume that faster or slower is in the local spacecraft reference frame so we don't have to worry about relativity.
The mousetrap (a reference to any spring-loaded mechanical actuation) will move very slightly faster without the drag force when atmosphere is present, all else being equal.
How much faster? The Instructables article Mouse Trap Speed! times it electrically and gives 12 milliseconds. If we ballpark the area and distance covered by the "business end" of the actuator at 100 mm^2 and 15 cm the average velocity is 12 m/s and use 1.2 kg/m^3 for the density of air $\rho$ and a drag coefficient of 1 in
$$F_D = \frac{1}{2} \rho v^2 C_D A$$
the drag force is about 0.01 Newton. I won't do the whole calculation but I think this will end up being a parts-per-million effect.
Of course "outside a spacecraft" the temperature is going to fluctuate wildly. Without atmosphere things can't effectively cool themselves so in the Sun the dark oxidized copper spring is going to get hot, and every time the satellite goes into the Earth's shadow it's going to radiate into space and cool very quickly. Thermal effects may change the energy stored in the spring and how rapidly it can release it due to internal friction within the metal's matrix. That's really hard to quantify.
Then there's issues of angular momentum. Is the mousetrap rigidly attached to the spacecraft or will it flop around by itself, these have different moments of inertia and so the angular acceleration will be different.
So it's quite a messy problem, but the only significant effect I can think of is the lack of aerodynamic drag. I don't see how being in microgravity will make much of an effect on the initial closing of the trap.
There seems to be some more detailed calculations on trap actuation here.
Source