Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!lai From: lai@Apple.COM (Ed Lai) Newsgroups: comp.sys.mac.programmer Subject: Re: Open Document AppleEvents--Sending(2nd time) Message-ID: <54452@apple.Apple.COM> Date: 28 Jun 91 19:55:42 GMT References: <1991Jun21.130718.1@sif.claremont.edu> <54275@apple.Apple.COM> Organization: Apple Computer Inc., Cupertino, CA Lines: 25 In article <54275@apple.Apple.COM> lai@Apple.COM (Ed Lai) writes: > > err := AEPutParamDesc(theAEvent, keyDirectObject, temp); > > err := AEDisposeDesc(temp); > > CreateOpenEvent := err; >end; {CreateOpenAppleEvent} > >Again error handling has been omitted. > >The create list has been omitted because there is only 1 item on the list. > It turns out the above simplification would not work if you are sending the event to TeachText or non-AppleEvent aware application. In that case you still have to create the list and put the alias into the list first. /* Disclaimer: All statments and opinions expressed are my own */ /* Edmund K. Lai */ /* Apple Computer, MS37-UP */ /* 20525 Mariani Ave, */ /* Cupertino, CA 95014 */ /* (408)974-6272 */ zW@h9cOi