I'm 90% sure that on this page, http://wingware.com/doc/scripting/syntax the text "kContextEditorPopup" should be just "kContextEditor" -- kContextEditorPopup causes a syntax error while "kContextEditor" works, and makes more sense. -Ken