[Pythonmac-SIG] converting Mac 'path' to file path in appscript?
Ned Deily
nad at acm.org
Fri Jun 20 06:33:52 CEST 2008
In article <08Jun19.140559pdt."58698"@synergy1.parc.xerox.com>,
Bill Janssen <janssen at parc.com> wrote:
> Thanks. I think you're suggesting that I could take the "path" and
> turn it into a File, and use the "path" property of the File to get
> the POSIX path. Would it be too much to ask for a one-liner showing
> how to do that? Using TextEdit if you don't have Word?
One way:
mactypes.File.makewithhfspath(u'wolfe:downloads').path
<http://appscript.sourceforge.net/py-appscript/doc/mactypes/index.html>
--
Ned Deily,
nad at acm.org
More information about the Pythonmac-SIG
mailing list