Scripts for a magstripe door mechanism