Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!gatech!rutgers!caip.rutgers.edu!twu From: twu@caip.rutgers.edu (Theodore Wu) Newsgroups: comp.sys.mac.programmer Subject: SFGetFile and Launch Keywords: Launch MacWrite 5.0 Message-ID: Date: 27 Nov 88 02:37:09 GMT Organization: Rutgers Univ., New Brunswick, N.J. Lines: 19 I am trying to add several menu items in addition to "Transfer..." which transfer to predefined applications, For example, "MacWrite" will transfer to "MyDisk:Applications:Mac Write:MacWrite 5.0". The "Transfer..." item works fine, but for the "MacWrite" item, I don't know how to find the volume reference number for the folder. (e.g. "MyDist:Applications:Mac Write:".) I tried open that as a working directory (use PBOpenWD), set volume to that directory (use SetVol), and then do launch as in TN52. This works with all other applications except MacWrite 5.0. (It gave me a BOMB!! Error Code = 3, illegal instruction) Does anyone know why this happens and how to make this work? I think the difference between the "transfer..." item and the "MacWrite" item is the SFGetFile call. If anybody know what is actually being done in SFGetFile, or how to deassemble "PACK" resource ID=3 from system file, it might be helpful too. Ted from Rutgers.