PyFIT gives me ascii strings,and I am trying to call cocoa (and
eventually some applescript) functions from Python. I tried
from Foundation import NSString
from AppKit import NSWorkspace
import os.path
....etc...
ws = NSWorkspace.sharedWorkspace()
uapplicationpath = unicode(self.applicationpath, 'ascii')
self.launchsuccess = ws.launchApplication_(
NSString.stringWithString_(uapplicationpath) )
but get a traceback:
line 23, in result
uapplicationpath = unicode(self.applicationpath, 'ascii')
TypeError: decoding Unicode is not supported
Help ?
_______________________________________________
Pythonmac-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig