[FIX] "File->Save As" in Script panel

I have fixed "File->Save As.." in Script panel. I've just put working code from dock 'save as' out to function which is used by editor, and made dock use it when 'saving as'.

Tested on Archlinux and OS X.