Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!es2q+ From: es2q+@andrew.cmu.edu (Erik Warren Selberg) Newsgroups: comp.sys.mac.programmer Subject: Re: Launching with Document List Message-ID: Date: 8 Dec 89 00:22:00 GMT Organization: Carnegie Mellon, Pittsburgh, PA Lines: 36 This is more of a job for luni, as he figured out how to do it... I have some code that *won't* work 100% correctly, but it's a start (I do know you need to set some value back to what it started as, but that's about it). type {Data structure for Finder information} FinderInfoRec = record message: INTEGER; {Allocate a handled block in the SYSTEM Heap} DocumentHandle := FinderInfoRecHndl(NewHandleSysClear(SizeOf(FinderInfoRec))); HLock(Handle(DocumentHandle)); {Fill in information about Handle^^.fileName := 'the document'; HUnLock(Handle(DocumentHandle)); {Move Handle into the AppParmHandle low mem global, $AEC} tempLong := ORD(DocumentHandle); BlockMove(R} {MOVE.L A0,(SP)} {MOVE.W D0,MemError} Let me know if this does the trick. Rich (the following was copied from MacProgrammer's West, and written (obviously) by Rich, who's last name escapes me, but might be around) ------------------/ Megalo Erik \-------------------- GEnie: E.SELBERG | Selberg | CIS: 71470,2127 Delphi: LORDERIK | lost in | Fido: 129/107 BBS: 412 268 8974 | Andrew! | MacList: 6009/1 ------------------\ help! help! /-------------------- ...I'm being confused at CMU!