Jean, in your other thread on the same subject, you said you wanted to:
> Open a new document, select a circle on the page and run convert it.
There is no circle on the page of a new document. That's why Larry told you to create a new document, draw a circle and then use the script statements he provided you.
In the code that Larry provided, (and that you have used in the script in this thread), this line:
> var lineRef = activeDocument.pathItems[0];
is referencing the topmost (index 0) pathItem
in the document.
to reference the topmost (index 0) pathItem of the
current selection, change that line to:
> var lineRef = activeDocument.selection[0];
JET