On Jun 19, 2008, at 21:33 PM, Ned Deily wrote:

One way:
  mactypes.File.makewithhfspath(u'wolfe:downloads').path

<http://appscript.sourceforge.net/py-appscript/doc/mactypes/ index.html>

mactypes is a very useful module, it is how I get the selection in the Finder via appscript whether using Python or PyObjC

def getFinderSelection():
        """List of aliases of selected items in the Finder"""
return [alias.path for alias in app("Finder").selection.get(resulttype=k.alias)]

Daniel

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to