[Pythonmac-SIG] "Launching" a file on a mounted server.

Stephen Hansen apt.shansen at gmail.com
Thu Mar 17 22:49:16 CET 2005


Hello all :) I'm in the progress of porting our Python program over to
the Mac, and I've run into a snag or two.

We're running Python2.3 on MacOSX 10.3

I have two files:  /Volumes/server/file1.jpg
and: /Volumes/server/element/file2.jpg

If I do: fs1 = Carbon.File.FSRef('/Volumes/server/file1.jpg') 
and: fs2 = Carbon.File.FSRef('/Volumes/server/element/file2.jpg')

then if I use findertools.launch(fs1) it works, but
findertools.launch(fs2) does not. It throws the following traceback:

Traceback (most recent call last):
  File "/falcon/apt/system/editorial/library/ResourceGrid.py", line
162, in OnLeftDoubleClick
    cb(self, row, rec, line)
  File "/falcon/apt/system/editorial/application/client/Client.py",
line 558, in OnQueue_DoubleClick
    findertools.launch(Carbon.File.FSRef(path))
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/findertools.py",
line 45, in launch
    return finder.open(fss)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py",
line 250, in open
    raise aetools.Error, aetools.decodeerror(_arguments)
aetools.Error: (-10000, 'errAEEventFailed', None)


Now, i can browse into that directory (QA_Edit40->element) and run
that file fine, and if i copy that file onto the roof of the share (so
it becomes /Volumes/server/file2.jpg) it runs fine.. Just not in the
subdirectory...
-- 
Stephen Hansen
Development
Advanced Publishing Technology

shansen at advpubtech.com
(818) 557-3035 x330


More information about the Pythonmac-SIG mailing list