In a system for discretely packaging liquid or solid medication or other substances comprising a compartmented tray (10) with a perforated sealed sheet (21 ) attached thereto and individual removable pots (17) to which the sealed sheet is also sealed, a heat sealing machine to cause the sheet (21 ) to be sealed to the individual pots (17) and to the tray (10) whist simultaneously folding and sealing a front flap (29) of the film (21 ) to an end face (15) of the tray, comprising a heated plate (30) and a spring loaded pressure plate (32) with a supplementary heated member (36) and adjustable spot- sealing pins (37) pivotally mounted on the machine such that as the heated plate (30) seals the top of the film (21 ) so the pins (37) fold the front flap (29) of the film (21 ) down over the end of the tray and seal it thereto. Thus, the film (21 ) is sealed to the tray on two planes substantially simultaneously.