Fixed a few typos, and changed FSCreateResourceFile filename argument to unicode.
diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py
index 4cea10f..7cafce5 100644
--- a/Lib/plat-mac/buildtools.py
+++ b/Lib/plat-mac/buildtools.py
@@ -54,7 +54,7 @@
 		try:
 			file, d1, d2 = Carbon.File.FSResolveAliasFile(file, 1)
 			break
-		except (Carbon.File.error, ValueError):
+		except (Carbon.File.Error, ValueError):
 			continue
 	else:
 		raise BuildError, "Template %s not found on sys.path" % `template`
@@ -175,7 +175,7 @@
 		output = Res.FSOpenResourceFile(destname, RESOURCE_FORK_NAME, WRITE)
 	except MacOS.Error:
 		destdir, destfile = os.path.split(destname)
-		Res.FSCreateResourceFile(destdir, destfile, RESOURCE_FORK_NAME)
+		Res.FSCreateResourceFile(destdir, unicode(destfile), RESOURCE_FORK_NAME)
 		output = Res.FSOpenResourceFile(destname, RESOURCE_FORK_NAME, WRITE)
 	
 	# Copy the resources from the target specific resource template, if any
@@ -261,7 +261,7 @@
 	
 	# Now set the creator, type and bundle bit of the destination.
 	# Done with FSSpec's, FSRef FInfo isn't good enough yet (2.3a1+)
-	dset_fss = Carbon.File.FSSpec(destname)
+	dest_fss = Carbon.File.FSSpec(destname)
 	dest_finfo = dest_fss.FSpGetFInfo()
 	dest_finfo.Creator = ownertype
 	dest_finfo.Type = 'APPL'