Is there a command to open a named script in the editor?

is there a command to open a named script in the editor ?

Try

Prefs SCRIPTEDIT="My Script.js*"

Prefs SCRIPTEDIT

works great, many thanks (.osp extensions work as well)