Path: utzoo!utgpu!attcan!uunet!peregrine!zardoz!dhw68k!thecloud
From: thecloud@dhw68k.cts.com (Ken McLeod)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Opening a document under Multifinder from the Finder
Keywords: multifinder  opening docs
Message-ID: <10484@dhw68k.cts.com>
Date: 12 Aug 88 07:22:32 GMT
References: <1988Aug10.152436.2742@mntgfx.mentor.com>
Reply-To: thecloud@dhw68k.cts.com (Ken McLeod)
Organization: Wolfskill residence; Anaheim, CA (USA)
Lines: 38

In article <1988Aug10.152436.2742@mntgfx.mentor.com> tomc@mntgfx.mentor.com (Tom Carstensen) writes:
>Can anyone from Apple (or anyone who knows) tell me a way
>of getting the document opening of running applications
>from the finder to work when the standard SFGetFile dialog
>is NOT used via Open from the File menu?
>
>I think its STUPID to implement something like this new
>open document feature, and not support it via OPEN EVENTS,
>such as suspend/resume/mouse_moved events are handled!
>

 If the application would normally be able to open a double-clicked
document from UniFinder, but double-clicking a document in the
Finder under MF (when the app is already running) brings up some
sort of error message like "Please open this from the application...",
you need to install a 'mstr' or 'mst#' resource into the offending
application.
 StuffIt is a good example of what I'm talking about...ever try to
double-click a StuffIt document from the Finder when StuffIt is already
running in another partition? You get a dialog box to this effect: "Hi,
I'm clueless, so you'll have to switch to StuffIt first." This is
because MultiFinder is looking for a specific menu item ("Open..."),
and StuffIt uses an "Open Archive..." menu instead.
 The fix is to create either an 'mstr' or 'mst#' resource (your choice)
in the application with ResEdit. These types correspond to 'STR ' and
'STR#' respectively; in fact, you can use ResEdit's "Open As..." command
to create them. The string(s) simply contain whatever the application's
"Open" menu item is...then set the ID to 102 or 103 (I'm not sure which;
going from memory here) and MultiFinder will search this resource to
determine which menu means "I want to open this document!"
 Hope that was somewhat helpful...


-- 
==========      .......     ==========================================
Ken McLeod     :.     .:    uucp: {trwrb hplabs}!felix!dhw68k!thecloud
==========    :::.. ..:::   InterNet: thecloud@dhw68k.cts.com
                 ////       ==========================================