FileMaker Image Container Issue

All day I’ve been trying to get FileMaker to accept a Thumbnail of an image. The Image is in Portfolio 7 but having read up it seesm the thumbnail exporting option via applescript is broke! So next I tried cutting it from the icon in the Finder but saw that the AS dictionary says copy is not curently available in that context! So no I’ve go it opening in Photoshop resizing and then copying to the pasteboard.

However I just can’t get it to seem to paste into the field with AS - I can do it by hand so the graphic is there waiting.

This is the offending part of the script - can anyone enlighten me?

tell application "FileMaker Pro"
	activate
	tell database DBVar
		tell current record
			set cellValue of cell "Image File Size" to SizeVar
			set cell "Thumbnail" to contents of clipboard as picture -- (also tried 'to clipboard as picture' but no luck)
		end tell
	end tell
end tell

Okay,
I’ve gotten it to work with the changes below:

tell application "FileMaker Pro"
	activate
	tell database DBVar
		tell current record
			set cellValue of cell "Image File Size" to SizeVar
			go to cell "Thumbnail"
			paste
		end tell
	end tell
end tell

but this only works through Script Editor - when I put this as a FileMaker based Applescript then I get the result - FileMaker got an error: The event failed (Error -10000)

Anyone any idea how to get round this?