Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!usc!brutus.cs.uiuc.edu!apple!farrier From: farrier@Apple.COM (Cary Farrier) Newsgroups: comp.sys.apple Subject: Re: Finder-supplied data file Message-ID: <38560@apple.Apple.COM> Date: 12 Feb 90 19:58:30 GMT References: <9001260129.AA04439@apple.com> <38342@apple.Apple.COM> <1214@darkstar.ucsc.edu> <12122@smoke.BRL.MIL> Organization: Apple Computer Inc, Cupertino, CA Lines: 32 In article <12122@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: >Say, how DOES an application find out the name of the double-clicked >file used to launch it? When an application starts up, after it has performed it's needed startup, it should make the Tool Locator call "MessageCenter" ($1501, page 24-14 of the IIGS Toolbox Reference Manual, Volume 2), with an action code of $0002, getMessage, and a MessType of $0001, file info type. If you don't get a "messNotFoundErr" ($0111), then the content of the MessData field will be of the folowing structure: MessData block 0 = open the following files 1 = print the following files str 'name1' str 'full pathname 2' ... BYTE 0 The toolbox manual says that only MessType 1 has been defined, but others may have been defined since it's publication. Matt or Dave, what's the scoop? -- +---------------------------------------+---------------------------------+ | Cary Farrier | Internet : farrier@apple.com | | Apple II Systems Software Engineering | UUCP : apple!farrier | | Apple Computer, Inc. | Fax : (408) 974-1704 | | 20525 Mariani Ave. | AppleLink : FARRIER | | Cupertino, CA 95014 | or farrier@applelink.apple.com | +---------------------------------------+---------------------------------+ | I don't speak for Apple Computer, our products do. | +-------------------------------------------------------------------------+