How to call the "replace_selected_notes" sequence using JS

    Feb 23 2010 | 4:54 am
    Does anybody know how to call the Clip class attribute "get_selected_notes" sequence using Javascript?
    I am attempting to call it this way:"replace_selected_notes");"notes", 1);"note 60 0.0 0.5 100 0");"done");
    I get 2 errors
    Clip class has no attribute "note 60 0.0 0.5 100 0" and "wrong Clip Count"
    Any body have any idea of the proper way to do this using JS?