Finding iframe in page and printing with safari


I have also asked this ina another post sorry for cross posting but I thought in th future for other users it may be useful to have this answer separately

I am trying to get safari to print the contents of an iframe called “fff”

tell application "Safari" to findFrameNamed(NSString * hhh)
tell application "Safari"
	(print document hhh without Dialog)
end tell

end of line

but this does not work I have tried reading the dom values from the safari but cannot work it out

any help great fully received