Mac Question: Locally-saved HTML pages

RJM62

Touchdown! Greaser!
Joined
Jun 15, 2007
Messages
13,157
Location
Upstate New York
Display Name

Display name:
Geek on the Hill
My student-artist colleague / protege is trying to learn HTML, at my urging. It's helping her to learn the workings and limitations of the craft so she'll be able to work more closely with Web developers. Like most artists, she uses a Mac.

The problem is that when she saves a file locally with an .html extension, it doesn't open with Safari, but rather with whatever text editor Macs use by default.

How does one go about getting a locally-saved HTML page to open in Safari in a Mac?

Thanks,

Rich
 
Get Info on the file and set the default application to Safari instead of the text editor.

Might also start using Firefox instead - more consistent across platforms since MS stopped supporting IE on the Mac.
 
Get Info on the file and set the default application to Safari instead of the text editor.

Might also start using Firefox instead - more consistent across platforms since MS stopped supporting IE on the Mac.

Okay, Thanks.

-Rich
 
My student-artist colleague / protege is trying to learn HTML, at my urging. It's helping her to learn the workings and limitations of the craft so she'll be able to work more closely with Web developers. Like most artists, she uses a Mac.

The problem is that when she saves a file locally with an .html extension, it doesn't open with Safari, but rather with whatever text editor Macs use by default.

How does one go about getting a locally-saved HTML page to open in Safari in a Mac?

Thanks,

Rich

To open a file in Safari, the File -> Open menu item from Safari will work. Alternatively, right-clicking on the file from the desktop and selecting Safari from the Open With contextual menu also works.

To make all like files open in Safari by default, select the file, then go to File-> Get Info. In the resulting window, go to Open With, select Safari from the list, and click on Change All.


JKG
 
To open a file in Safari, the File -> Open menu item from Safari will work. Alternatively, right-clicking on the file from the desktop and selecting Safari from the Open With contextual menu also works.

To make all like files open in Safari by default, select the file, then go to File-> Get Info. In the resulting window, go to Open With, select Safari from the list, and click on Change All.


JKG

Thanks. I didn't know Macs had right mouse buttons...

-Rich
 
Thanks. I didn't know Macs had right mouse buttons...

-Rich

Real ones don't.

Technically, they don't have a left one either :)

You can hold down the funny looking button and click to get "the mouse button" to get the same effect as a right click.
 
You can also drag/drop the file into Safari and it will open as well.
 
Real ones don't.

Technically, they don't have a left one either :)

You can hold down the funny looking button and click to get "the mouse button" to get the same effect as a right click.

Ah, okay. That's kind of what I thought, actually, but I haven't used a Mac in probably three years. Thanks.

-Rich
 
Real ones don't.

Technically, they don't have a left one either :)

You can hold down the funny looking button and click to get "the mouse button" to get the same effect as a right click.

Macs have had right and left mouse buttons for several years now.


JKG
 
Desktops? I beg to differ.

Yes, at least since Apple debuted the "Mighty Mouse" several years ago. I believe that Apple is now shipping multi-touch mice, which also provide multi-button functionality.


JKG
 
`open -a safari filename.html` in terminal also works.
 
Yes, at least since Apple debuted the "Mighty Mouse" several years ago. I believe that Apple is now shipping multi-touch mice, which also provide multi-button functionality.


JKG

I have one and I find the fondle me mice to be quite disturbing!
 
Any one with a touch pad uses the two fingered click to make the "right click menu" come up.

You can open files with "Open File" under the FILE menu in SAFARI or SPLAT-O.

If she hasn't figured out how to go to the PREFERENCES ... ADVANCED tab and click the "Turn on Develop Menu in Menu Bar" button at the bottom, she should do that. Should give her some additional information.
 
Any one with a touch pad uses the two fingered click to make the "right click menu" come up.

You can open files with "Open File" under the FILE menu in SAFARI or SPLAT-O.

If she hasn't figured out how to go to the PREFERENCES ... ADVANCED tab and click the "Turn on Develop Menu in Menu Bar" button at the bottom, she should do that. Should give her some additional information.

I'll pass that on when I talk to her. Thanks. In the meantime, she seems to be MIA. I haven't heard from her or the boss in about a week. (I did receive a check today, so as far as I know I haven't been fired.)

-Rich
 
Well, she got back to me. Safari is just showing the source code rather than rendering the HTML.

I have a hunch she's not saving the file with a .html extension.

-Rich
 
....Or the code is incorrect to the point that safari is yakking it up. Such as missing the <HTML> tag. But yes, extensions do help.
 
Thanks. I didn't know Macs had right mouse buttons...

-Rich

Real ones don't.

Technically, they don't have a left one either :)

You can hold down the funny looking button and click to get "the mouse button" to get the same effect as a right click.

Ah, okay. That's kind of what I thought, actually, but I haven't used a Mac in probably three years. Thanks.

-Rich

Macs have had right and left mouse buttons for several years now.


JKG

Desktops? I beg to differ.

Both Apple laptops and desktops have had right click on the mouse and trackpad for many years now.
 
....Or the code is incorrect to the point that safari is yakking it up. Such as missing the <HTML> tag. But yes, extensions do help.

Close. We finally figgered it out. She was saving them as .html files, but in RTF format.

Thanks,

Rich
 
Real ones don't.



Technically, they don't have a left one either :)



You can hold down the funny looking button and click to get "the mouse button" to get the same effect as a right click.


Actually all the "real ones" now have trackpads instead of mice (even the desktops) and gestures are making the phrase "right click" obsolete. ;)

Or as the nostalgia folks like to say, "The last generation to right-click has already been born." :)

Five different ways to do it on a trackpad per C|Net. Pick your favorite.

http://m.cnet.com/news/five-ways-to-right-click-on-a-mac-trackpad/57584236?ds=1
 
Thanks. I didn't know Macs had right mouse buttons...

-Rich

Yep, Open-With...has a checkbox "Do this for all files of this type."

Also you may have to uncheck "Recommended Applications" if you don't see the one you want.
 
Back
Top