|
From: Youness A. <kak...@ka...> - 2009-08-09 22:30:52
|
ahhh.. I should really get used to Reply all instead of just Reply... Kevin, here's my previous answer to you which went to Philip instead of the mailing list... (the offlist talk he mentioned) : Hi, aMSN supports AppleScript events, but it looks like Tk itself doesn't support it correctly, it gives an error : 27:53: execution error: aMSN got an error: AEDoScriptHandler: invalid script type 'txtu', must be 'alis' or 'TEXT' (-1770) You can read more info on how we fixed it here : http://www.amsn-project.net/forums/viewtopic.php?t=6828 Basically, we use tclAE which seems to work fine.. however, all the available binaries for tclAE are version 2.0, which crashes with tcl/tk 8.5.. but the SVN version of tclAE has a fix for that.. I've compiled a universal binary for tclAE, you can find it here : http://amsn.svn.sourceforge.net/viewvc/amsn/trunk/amsn/utils/macosx/tclAE2.0.4/ and we use this script here : http://amsn.svn.sourceforge.net/viewvc/amsn/trunk/amsn/utils/macosx/applescript/ in order to make it work correctly... aMSN uses the default standalone Wish shell bundle and we didn't modify anything in the Info.plist for it to work... Hope that helps. KaKaRoTo On Sun, Aug 9, 2009 at 12:53 PM, Kevin Walzer <kw...@co...> wrote: > 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 > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Tcl-mac mailing list > tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac > |