In article
<d9ff9768-29ed-4bd4-9ed8->,
wrote:
> I'm on MAC OS 10.5. I have Safari set up as my default
> web browser.
>
> When I save a web page to my desktop and
> double-click it, it pops up in the Safari browser
> as one would expect.
>
> However when I try to double-click an html I've created myself
> called kmq1.html. it brings up a text editor.
>
> But if I choose the option (from right-clicking the file icon)
> it opens in Safari fine.
>
> Why isn't my html recognized? The icon for the file is
> the standard html icon.
To the last first: because it is normally a good idea to have it open in
your favourite text editor. You can choose which program to open such
files (including your favourite text editor)
1. Highlight file,
2. File/Get Info or Command + I or, in column directory view, click the
More info button or even try control or right click to get a context
menu and chose Get Info (so many ways!)
3. Go down to the "Open with" and click arrow to reveal options
4. Use scroll menu with little arrows to *Choose* the prgm you want
5. Make sure you then press the Change All button under the words "Use
this application to open all documents like this"
Perhaps you don't know that simply dragging the file icon or name over
any browser icon or even over any open browser window (under most
circumstances - does not work if you are viewing a pdf in your browser
window!) makes the file produce a webpage.
What program you choose to open in as default depends on your work. It
is natural and rather more reasonable for a website developer to have
double click open it in a text editor so he can edit and/or inspect the
code straight away.
Yes, you could choose as default a browser, and when wanting to edit,
you could then drag file over a text editor or use the Get Info panel
and Open With *without* pressing the Change All button.
But the two strategies are not quite symmetrical or as convenient as
each other. Here is one reason: if it opens in a browser and then you
want to edit, you can inspect the source via View Source menu item but
then you cannot edit.
True, you could then open the source by returning to the file and
opening it as a one off special in a text editor or by dragging to a
text editor icon.
Here are some other things that might assist you to know. In iCab, you
can set your own text editor to View Source so you could have best of
both worlds by opening as default in iCab and a simple Command + 8 will
get you the file open in your favourite editor. But that is iCab, not
Safari.
By the same token, some editors have the mirror capacity to this last.
In BBEdit, for example, you can set the browsers you want the file to
display as web page in and there are buttons and things to make this
easy.
Do what you find easiest for your situation. You might well find it more
convenient to have double click open the text editor and use many other
simple means for opening in browsers rather than the other way around
when you have a lot of website work to do.
For one thing, you tend to use one editor but many browsers!
--
dorayme