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



John Ralls wrote:
> 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.
>   

OK. This would be a really useful thing to have, if possible. Much 
respect and glory will be showered on anyone who decides to implement it!

Cheers
JP




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