Adam,
The line of code offered does not even fire .. when inserted into the script the ASP page will not even fire. :)
obj_Editor1.PasteHTML(' <script type="text/javascript" src="user/media/audio/ply2.js"></script>')
The error is generated within the brackets .. of course I set the object to the editor object I use.
I await your reply,
Pete