Differences between revisions 1 and 18 (spanning 17 versions)
Revision 1 as of 2003-01-04 06:24:08
Size: 169
Editor: 200
Comment:
Revision 18 as of 2006-04-18 23:33:57
Size: 721
Editor: synergy1
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
(someone who uses, please fill this page up) '''Much of this page is wildly out of date and/or wrong (a common problem with Wikis).'''
Line 3: Line 3:
You can find information at http://www.drizzle.com/~donn/Bethon.html and http://www.python.org/doc/current/mac/mac.html '''Please see [http://www.python.org/download/mac/ the regular Macintosh Python download page] for more up-to-date information.'''



=== How to Make FSSpec's ===
This should probably be somewhere else, but it's too useful to wait until I can figure out where that would be. (Note: I have only tried this in Python 2.3)

{{{
#!python
from Carbon import File
spec = File.FSSpec('/normal/slash/based/unix/path/string')
}}}

That's ALL! Don't muck around with FSMakeFSSpec or CFURL or any of that stuff.
I found this [http://mail.python.org/pipermail/pythonmac-sig/2003-March/007459.html on the pythonmac-SIG list].

Much of this page is wildly out of date and/or wrong (a common problem with Wikis).

Please see [http://www.python.org/download/mac/ the regular Macintosh Python download page] for more up-to-date information.

How to Make FSSpec's

This should probably be somewhere else, but it's too useful to wait until I can figure out where that would be. (Note: I have only tried this in Python 2.3)

   1 from Carbon import File
   2 spec = File.FSSpec('/normal/slash/based/unix/path/string')

That's ALL! Don't muck around with FSMakeFSSpec or CFURL or any of that stuff. I found this [http://mail.python.org/pipermail/pythonmac-sig/2003-March/007459.html on the pythonmac-SIG list].

MacPython (last edited 2010-10-05 10:25:11 by MichaelFoord)

Unable to edit the page? See the FrontPage for instructions.