Ronald Oussoren wrote:

>> i was wondering if anyone else has seen this behavior with the
>> findertools.launch() function. the docs indicate that when given a
>> pathname, launch(path) will launch a Finder window with that path.  
>> but
>> when i try to launch any valid path i get this error:
>
> Please file a bug at http://sourceforge.net/projects/python, this  
> seems to be yet another byteorder bug in the OSA support in the  
> core python distribution.

You might add a note that since findertools uses aetools which is  
[over]due for deprecation, findertools should be deprecated as well.

Anyway, simplest solution here is:

        import subprocess
        subprocess.call(['open', '/Users/drew/Documents'])

Or you can do it with appscript if you prefer:

        from appscript import *
        from mactypes import Alias

        path = '/Users/drew/Documents'

        app('Finder').items[Alias(path)].open()

has
-- 
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html

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

Reply via email to