[comp.sys.mac] How to coerce the finder to open different application

mfi@beach.cis.ufl.edu (Mark Interrante) (03/15/88)

I have many macwrite documents and now that I am on a MACII macwrite no
longer works( I dont care now that I have WORD).  The question is how 
can I tell the finder that when I double click on a WRITE document that 
I really want to open up WORD.  This type of capability has other applications
as well.


Mark Interrante                                               CIS Department
                                                       University of Florida
Internet:  mfi@beach.cis.ufl.edu                      Gainesville, FL  32611
                                                              (904) 335-8051

sysop@stech.UUCP (Jan Harrington) (03/16/88)

in article <12964@uflorida.cis.ufl.EDU>, mfi@beach.cis.ufl.edu (Mark Interrante) says:
> 
> I have many macwrite documents and now that I am on a MACII macwrite no
> longer works( I dont care now that I have WORD).  The question is how 
> can I tell the finder that when I double click on a WRITE document that 
> I really want to open up WORD.  This type of capability has other applications
> as well.
> 
You can't directly double-click on a document and expect it to automatically
launch an application other than the one that created it.  That's because
the document carries around a four character string that identifies its
creator.  There are two ways to fix the problem:

	1. Use a "tools" program to change the creator string on the 
document so that it is the same as the creator for Word documents
	2. Open Word with a blank document, close the blank document, and
open the MacWrite file from the standard open file dialog box.  Once you
save the file from Word, the document will be marked with Word as its
creator.


Jan Harrington, sysop
Scholastech Telecommunications
UUCP: ihnp4!husc6!amcad!stech!sysop or allegra!stech!sysop
BITNET: JHARRY@BENTLEY

********************************************************************************
	Miscellaneous profundity:

		"No matter where you go, there you are."
				Buckaroo Banzai
********************************************************************************

kraut@ut-emx.UUCP (Werner Uhrig) (03/17/88)

I know that Darin Adler wrote a program RANGER with which you could change the
type of selected (all?) files of a certain type to another - and, I believe,
I had uploaded it at some time and that should make it availabe at the
SUMEX, SIMTEL20 and many other archives. Darin wrote that program to change the
type of MacPaint-docs to SuperPaint (or was it FullPaint?) - and that it
worked for other types also.

I also remember a second, slightly different program that was even more
powerful (or was it the other way around?) - but can't remember the name ...
-- 
(prefered mailbox:)		werner%rascal@sally.utexas.edu
				....!ut-sally!rascal.ics.utexas.edu!werner
(if rascal is unreachable:)	werner@astro@sally.utexas.edu
				werner@utastro.uucp

cyosta@taux01.UUCP (Yossie Silverman) (03/28/88)

My solution to the problem of a document opening an application other then
the one that created it was to make a tiny application called 'launch ...'
(where ... is the name of the application to launch) which has the creator
of the application which created the document (and, the ICN#'s as well, to
make things look good as well as behave).  This application simply launches
the application I wish to use passing it the finder argument list that was
passed to it by the finder.  It looks for the application in the same folder
as it is.  I didn't actually write this program :-)  I found such a program
that launched FullPaint for MacPaint docs and disassembled it.  I made it
do a few things (1) launch SuperPaint for MacPaint, (2) Launch Word 3.01 for
MacWrite, (3) for a friend, launch Canvas for MacPaint.  Any programmer could
hack something like this in no time at all or I could upload one with
instructions for customizing.

Yossie
-- 
Yossie Silverman                                   What did the Caspian sea?
National Semiconductor Ltd. (Israel)				- Saki
UUCP: taux01!yossie@nsc.UUCP
NSA LSD FBI KGB PCP CIA MOSAD NUCLEAR MI5 SPY ASSASSINATE SDI -- OOCLAY ITAY