Opening a file in an already-open app

Hi Ian,

If an application is closed and I double-click on a file it made, the
app opens the file; the file name is stored in sys.argv[1].

If the app is already open (with no file opened) and I doubleclick on
the appropriate file, the app comes to the foreground (so there is
information being transmitted) but the file doesn't open in the app.

What info is being transmitted? Is the filename being passed to the
app in any form I can use?

See the "Making your app a drop target for files" section on this page, particularly the stuff about MacOpenFile:

http://wiki.wxpython.org/index.cgi/Optimizing_for_Mac_OS_X

Regards,

Kevin

ยทยทยท

On Apr 15, 2007, at 5:17 PM, Ian York wrote:

MacOS 10.4.9, wx.Python 2.8.3, Python 2.4

Ian

--
Ian York (iayork@gmail.com) <http://www.panix.com/~iayork/&gt;
   "-but as he was a York, I am rather inclined to suppose him a
    very respectable Man." -Jane Austen, The History of England

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org