We have some Brother label makers and I wanted to programmatically make one print stuff, from a mac. First, I installed the ptouch drivers from the Brother website. Took ages to fiddle with it just right, but the product is very simple. Here's an example with 12mm wide tape and 12-character-wide printing.
Brother PT 2730:
123 | echo "0123456789AB" | \
lpr -o media=12mm -o PageSize=Custom.30x99 -o page-top=8 \
-o landscape -P Brother_PT_2730;
|
Brother PT D600:
123 | echo "0123456789AB" | \
lpr -o media=12mm -o PageSize=Custom.28x93 -o page-top=8 \
-o landscape -P Brother_PT_D600;
|
You can see some small differences - details after the jump.