I am doing some scripting of Adobe InDesign. Their COM implementation is really designed for VB, so it\'s not rigorous about reporting data types, occasionally necessitating
No one has said it this way so I will.
Change
var str = frame.Contents.ToString();
to
string str = frame.Contents.ToString();