tomc@mntgfx.UUCP (08/11/88)
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! :------------------------------------------------------------: : Tom Carstensen Usenet: tomc@mntgfx.MENTOR.COM : : Mentor Graphics Delphi: CARSTENSEN : : GEnie: CARSTENSEN : : : : If you are sick and tired, of all your dreadful : : dimensions, let me stretch your TIME! : : - Time Operator : :------------------------------------------------------------:
thecloud@dhw68k.cts.com (Ken McLeod) (08/12/88)
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 //// ==========================================
lsr@Apple.COM (Larry Rosenstein) (08/15/88)
In article <10484@dhw68k.cts.com> thecloud@dhw68k.cts.com (Ken McLeod) writes: > 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; The ids are 100 for menu title for Quit item, 101, for Quit item iteself; 102/103 are the ids for the open menu title and item. (You can verify this by looking in the MultiFinder file itself.) Larry Rosenstein, Object Specialist Apple Computer, Inc. 20525 Mariani Ave, MS 46-B Cupertino, CA 95014 AppleLink:Rosenstein1 domain:lsr@Apple.COM UUCP:{sun,voder,nsc,decwrl}!apple!lsr
joachim@iraul1.ira.uka.de (Joachim Lindenberg) (08/17/88)
I think the answer given to this problem isn't what the originator expected - or only a partial solution. I assume that the originator of the question had something like the open dialog of QEdit in mind, which isn't the SFGetFile dialog. The standard File/Open... technique of Multifinder won't work. I didn't try, but you should be able to install a HIRARCHICAL menu that contains a menu item that calls up the standard SFGetFile dialog, then point your mstr resources to that menu. This should work and give you what you wanted, an open event. Joachim