Quark XPress 7 getting text

Hello

I need help with following question:

I have a script which works with Quark 6.5
code snippet
“set temp to contents of selection
was able to get text of selection with Quark tags.
But, when i try to work with Quark 7, this code snippet return just Unicode text ( without tags)

How can i get this text with tags or get text formatting info in Quark 7?

Thank you very much.

maybe ou could export the selection to xpress tags ?

mm