Page 1 of 1
USing the launch command
Posted: Thu Nov 05, 2009 7:37 pm
by phaworth
The dictionary says the launch command opens a docuemnt using the default application for the type of file. My application creates a file with a .html extension and then launches it, but it is opened in MsWord, not Firefox, which is the default browser on my system.
Is there something lse I need to do to have the file opened with the correct application? This is running under OSX 10.5
Thanks,
Pete
Posted: Thu Nov 05, 2009 7:56 pm
by Mark
Hi Pete,
Before you create the file, do this:
set the filetype to "MOSSHTML"
Best,
Mark
Posted: Thu Nov 05, 2009 8:11 pm
by phaworth
Thanks Mark. I'll be creating other files for different programs, so is there a list of these filetypes somewhere?
Pete
Posted: Thu Nov 05, 2009 8:33 pm
by Mark
Pete,
There used to be such a list, but Apple no longer bothers and the alternative lists all went off-line AFAIK.
If you want a file to open with a particular application, you might look in the plist file of that application. You can also use the detailed files function of Revolution to see the current file and creator types of files.
If a file has an extension of which you know that it is associated with your preferred default application, you can also set the filetype to "????????" or e.g. "????TEXT" etc.
Best,
Mark