Hi,
For you to be able to edit the html file as you see it in a browser, you need a what you see is what you get (wyswyg) html editting app. There are many of these apps, but a good freeware wyswyg editor is Netscape Composer. You don’t edit the html code.
The file type for html is TEXT. So if you want to open the file in a browser, then you need the change/set the creator type. Here’s some creator types:
MSIE - Internet Explorer
MOSS - Netscape
sfri - Safari
You can easily get creator types with:
set the_app to choose file
file creator of (info for the_app)
It’s wierd but if you choose Netscape, you might get MOZZ when it should be MOSS. You can also have the file open in your default browser by setting the creator type to ???.
You can open a file in the default web browser with:
open location “file///Users/etc./”
but I think the file can’t have a creator type. This uses a local file address. You can open a file in any browser with an AppleScript tell statement:
set the_file to choose file
tell app “Internet Explorer”
open the_file
end tell
for example. Here, if you’re have classic, you need to make it not open with the classic browser if one exists. You can also open the file using the Finder.
If I think of anything else, I’ll try to write back.
Editted: in the last simple script with the tell statement, if you open a file this way, look in the address bar of the browser. You’ll see the local file address of the file. You can use this local url with the ‘open location’ command.
gl,