I remove the caliper and hang it in a plastic coffee can before taking the hose off. Then pump it out with the master cylinder. Also does a crack job of flushing the master cylinder out.
I just took a trio of F1 calipers apart using this method, it worked great. I found one nice piston and two pitted ones, ordered some K&L parts from 4-1.
When I put the brake line back on the bike that I used it didn't even need bled and now has some nice clean fluid in the master cyl. I'll also flush that bikes caliper out when this project gets done.
I pumped a piston out with a grease gun today, it worked well. The grease gun thread isn't a perfect match but one thread is all you need.