This method returns the format string value for the given index. If index is out
of range a null value is returned.
function onSample()
{
var clipboard = shell.clipboard;
if (clipboard)
{
var format = clipboard.getFormatAt(0);
if (format)
{
shell.print(format);
}
}
}