Added an optional debug handler that traps and prints all unknown appleevents.
diff --git a/Mac/Demo/waste/htmled.py b/Mac/Demo/waste/htmled.py
index 5aa0207..c6ae2e7 100644
--- a/Mac/Demo/waste/htmled.py
+++ b/Mac/Demo/waste/htmled.py
@@ -72,7 +72,7 @@
return None, None
oldrf = Res.CurResFile()
try:
- rf = Res.OpenResFile(self.path)
+ rf = Res.FSpOpenResFile(self.path, 1)
except Res.Error:
return None, None
try:
@@ -241,10 +241,10 @@
#
oldresfile = Res.CurResFile()
try:
- rf = Res.OpenResFile(self.path)
+ rf = Res.FSpOpenResFile(self.path, 3)
except Res.Error:
Res.CreateResFile(self.path)
- rf = Res.OpenResFile(self.path)
+ rf = Res.FSpOpenResFile(self.path, 3)
styles = Res.Resource('')
soup = Res.Resource('')
self.ted.WECopyRange(0, 0x3fffffff, None, styles, soup)