I understand that one may not benefit from a Gentile's melacha on Shabbat if such work only benefits you (a Jew).
Many shuls hire a Gentile person to take your coats, etc. They tear a ticket and give you the stub. Can one check in their coat? Isn't the ticket tearing meant just for your benefit?