I have no idea what's considered an "AppointmentItem" or a "MeetingItem".
while most are easy, for testing, you can figure out which items are which try like
if typename(msg) = "AppointmentItem" then msg.display
try on small collection of items else you might have too many items displayed

you could also add the item subject to your output like
print #n, s, msg.subject