Use FSpCreateResFile() in stead of CreateResFile().
Don't call OpenDeskAcc() and AppendResMenu() on Carbon.
diff --git a/Mac/Demo/waste/htmled.py b/Mac/Demo/waste/htmled.py
index b66814a..7643947 100644
--- a/Mac/Demo/waste/htmled.py
+++ b/Mac/Demo/waste/htmled.py
@@ -14,6 +14,7 @@
import Scrap
import os
import macfs
+import MACFS
import regsub
import string
import htmllib
@@ -243,7 +244,7 @@
try:
rf = Res.FSpOpenResFile(self.path, 3)
except Res.Error:
- Res.CreateResFile(self.path)
+ Res.FSpCreateResFile(self.path, '????', 'TEXT', MACFS.smAllScripts)
rf = Res.FSpOpenResFile(self.path, 3)
styles = Res.Resource('')
soup = Res.Resource('')