Xref: utzoo comp.sys.mac.misc:653 comp.sys.mac.apps:532 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcsun!unido!tub!tubopal!piggy From: piggy@tubopal.UUCP (Piggysoft) Newsgroups: comp.sys.mac.misc,comp.sys.mac.apps Subject: Re: Avoiding "Some documents could not be opened or printed".... Keywords: Macintosh, ResEdit, MultiFinder Message-ID: <1571@opal.tubopal.UUCP> Date: 13 Jun 90 21:10:03 GMT References: Reply-To: piggy@tubopal.UUCP (Piggysoft) Organization: TU Berlin FB 20 Lines: 47 In article jtn@ADS.COM () writes: >One of the most annoying things about the Mac is how it handles the >opening of documents. If I 2-click on a document, this launches the >appropriate application and all is fine with the world. Now I go back >to the finder and 2-click on another document expecting this document >to be opened also, but instead I get an alert box that says "Some >documents could not be opened or printed." >-- >John T. Nelson -- The Conrail Locmotive / Harpsichord fusion project > >Advanced Decision Systems (703) 243-1611 >UUCP: sun!sundc!potomac!jtn Internet: jtn@potomac.ads.com From the systems point of view launching an application with documents is something completly different than opening a document 'into' a running app. In pre MF times this wasn't even possible, now MF tricks the application into thinking that the user selected the "Open..." menu item and then short sheets the call to the File Dialog to return the double-clicked file name. The same method is used to quit all running applications at "Shut down" time. The problem is that some apps do no have the standard menu entrys for "Open..." and "Quit". You can add 'mstr' resources to your application to help MF find ;-) the correct menu-items. Each of these resources contains a string (open with template 'STR ' in ResEdit). The ID's of the resources must be from the following list. 'mstr' (100) Quit-menu usually "File" 'mstr' (101) Quit-item usually "Quit" 'mstr' (102) Open-menu usually "File" 'mstr' (103) Open-item usually "Open..." You could add resources with this type and id's to match the Menu strings. -- fabian From the Desktop Metaphor of Fabian Hahn piggy@tub.bitnet piggy@opal.cs.tu-berlin.de ..!{pyramid,unido}!tub!piggy