Copy from Filemaker to AppleScript

hi, I hope someone can help! I am trying to copy a set of FileMaker Script steps, I would like to paste the result into a text document, I know that I will only get garbage but how can I do this?

I created a simple script like this:

set X to clipboard as text

but I only get a error

error "Can't make clipboard of «script» into type text." number -1700 from clipboard to text

any way of extracting the clipboard?

thank you for your help!

Brian

Hi,

the error message says, that the clipboard contains a type of data (script) which cannot be coerced to text