Originally posted by hillemania:
<STRONG>I'm really new to Macs, never really done much with them. I need to be able to use applescript to call a specific browser, in this case Netscape Communicator 4.78 and open an html file with it. They will have to install this browser if they don't have it, but they will get to choose where it is installed.
Basically I need to be able to make it open an html page. Any script that anyone has would be greatly appreciated.
Thanks.</STRONG>
If you have a specific file that you want to open then do this:
tell application "Netscape Communicator"
activate
open file "Macintosh HD

esktop Folder:file.html"
end tell
If you want to prompt the user for a file do this:
tell application "Netscape Communicator"
activate
open file (choose file with prompt "Choose an HTML file.")
end tell
And one more thing, it seems that you want to distribute this script... more people use Internet Explorer.. but you can never be sure which browser that person uses. So if you want to open the file with their default browser, whether it be Explorer, Netscape, iCab, Opera etc... do this:
open location "file:///Macintosh HD/Desktop Folder/file.html"
And it will open that file with their default browser.
[ 11-20-2001: Message edited by: Synotic ]