Page 1 of 1

getting my help files to launch in a web browser

Posted: Fri Feb 18, 2011 6:11 pm
by magice
I have created a series of help documents for my current project in HTML format. I would like them to launch in the systems default browser when the help button is pushed. They will be located in a "helpfile" directory within the programs installation directory. I thought the following code would work.

Code: Select all

on mouseUp  
launch url "file:///helpfile/helpfile.html"
end mouseUp
Unfortunately it does nothing. My first thought was that maybe i needed the entire file path, not just the path relative to my app so I tried this.

Code: Select all

on mouseUp  
launch url "file:///C:/Documents and Settings/Admin/Desktop/DKP Scribe/helpfile/helpfile.html"
end mouseUp
This did not launch a browser window either. Can someone give me some direction on how to get this to work? I would prefer to be able to use the file path relative to my app as opposed to the full file path since the location of the program will not be the same for all users.
Thank you

Re: getting my help files to launch in a web browser

Posted: Fri Feb 18, 2011 6:53 pm
by magice
Nevermind I got it to work with

Code: Select all

on mouseUp  
launch document "helpfile/helpfile.html"
end mouseUp
so it's all good. :D