Re: [Gtk-osx-users] Opening files in GTK app from Finder?



On Sep 24, 2009, at 1:14 AM, John Pye wrote:

> Hi all
>
> Does anyone have a solution in PyGTK (or C) for open files in a GTK  
> app
> using Finder?
>
> Via the terminal, I can type
>
> open -a ASCEND models/johnpye/testlog10.a4c
>
> but this doesn't actually result in my file being opened.
>
> As far as I can tell, this 'open' thing sends some kind of even to my
> application, but I'm not sure what the correct way of dealing with  
> that
> event might be. Is this something that's dealt with in
> ige-mac-integration, perhaps?
>

That's done with Apple events, which Gtk applications don't support  
directly. It's on the To Do List [1] to implement a handler and pass- 
through to Gtk actions in ige-mac-integration. Sorry.

Regards,
John Ralls

[1] http://sourceforge.net/apps/trac/gtk-osx/wiki/ToDo




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]