Am 2011-06-30 um 13:52 schrieb Adam Morris:
I have an AppleScript snippet that I need translating to python
appscript; too low-level for ASTranslate to handle:
tell application "Finder"
"/Users/brainysmurf/Desktop" as POSIX file as alias
end tell
mactypes.Alias(unicodedata.normalize('NFD', os.path.abspath(path)))
You don't need the unicodedata stuff if your paths are 7-bit ASCII only.
Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG