How to add stroke to text frame in Illustrator using Applescript?

set mytexts to make new text frame with properties {contents:"Annonation " & g & ":" & param_Text, kind:area text, position:{(-150), (new_Var)}, width:(checkValue3 - checkValue1), name:"notes"}

Above code is used to create text in Illustrator using Applescript. How to add stroke or border to the created text frame. Any references or advice is highly appreciated.

The text path property of the frame will give you access to the frame.

May i get some example on this. Thanks

Probably something like:

set properties of text path of my texts to {stroked:true, stroke width:1,...}

Look up the text path property in AI’s dictionary.

It works. Thanks mate