From: Kevin W. <kw...@co...> - 2009-08-09 16:53:33
|
On 8/9/09 12:18 PM, Philip Aker wrote: > On 2009-08-08, at 13:53:59, Philip Aker wrote: > >> On 2009-08-08, at 12:07:55, Kevin Walzer wrote: > >>> There are also various Apple event handlers defined in >>> tkMacOSXHLEvents.c, such as ::tk::mac::OpenDocument and >>> ::tk::mac::PrintDocument. If these procedures are defined, does this >>> mean that a Tk application would respond to standard AppleScript >>> commands as "launch," "open document," "print document," etc? > >> I believe so. > > Well, due to an off-list post, I see that much has changed since the > last time I looked at the code in tkMacOSXHLEvents.c and was using a > 10.3/PPC system. It needs to be upgraded to be usable. I have made the > required changes in that file but need to test. As I've mentioned > previously, I mostly work with Tcl directly and do my own UI. If you > would be able to send me a do-little Tk app which links against the > Tcl.framework and Tk.framework located in /Library/Frameworks and has > stub procs for the AppleEvents, I should be able to test and debug the > changes and then send the altered file to whoever can make use of it. > The changes should be compatible back to at least 10.3 and forward > looking to some extent. I will also create the sdef and 'aete' resource. > > I'm working with the 8.5.7 projects (10.5 SDK). Unfortunately, I'm not in a position to send you the right kind of app right now--my questions about Apple events were preliminary in nature and I have done nothing to implement this functionality as yet. Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com |