Baseline in indesign using apple script

Hi all,
I need to get a baseline value of myparagraph using applescript.I have tried with the code given below

set myparas to paragraphs of myxml
set myfirstpara to item 1 of myparas
set mybase to baseline of myfirstpara
if mybase < myframeheight
display dialog “”
end if

But I am getting the error - "Can’t get baseline “???” "

Hi,

try a reference to:


...
set myfirstpara to a reference to paragraph 1 of myxml
set mybase to baseline of myfirstpara
...

HI,
Now I’m able to get the baseline.

Thank you.