diff --git a/Mac/Tools/IDE/PyEdit.py b/Mac/Tools/IDE/PyEdit.py index 3f1e9c8dda7..7274a1eedf0 100644 --- a/Mac/Tools/IDE/PyEdit.py +++ b/Mac/Tools/IDE/PyEdit.py @@ -5,6 +5,7 @@ import Wtraceback from Wkeys import * import macfs +import MACFS import MacOS import Win import Res @@ -134,7 +135,7 @@ class Editor(W.Window): try: resref = Res.FSpOpenResFile(self.path, 3) except Res.Error: - Res.CreateResFile(self.path) + Res.FSpCreateResFile(self.path, self._creator, 'TEXT', MACFS.smAllScripts) resref = Res.FSpOpenResFile(self.path, 3) try: data = Res.Resource(marshal.dumps(self.settings))