You need a function that will convert your relative path into a valid full path that the browser understands. I wrote up the function below to get you started. I don't have a mac to test it on, but on my windows box it seems to produce the correct result.
on convertToMacFullLocalUrl RelativePath
LocalUrl = "file:///Volumes/"
Delim = "/"
_player.itemDelimiter = ":"
FullPath = _movie.path & RelativePath
-- Pull out all the path info minus the delimiter
repeat with index = 1 to FullPath.items.count
-- reassemble the path in a local URL format
repeat with Tok in Tokens
LocalUrl = LocalUrl & Tok & Delim
-- remove delimiter at end of string
Thank you very much for your time :-)
Well I've resolved this with buddyApi Xtra using baOpenFile and not baOpenURl as i was used to.
So the straight forward "OK = baOpenFile( the moviePath & "myfile.htm" , "maximised" )" did the trick
Anyway could you tell me where i need to put this nice function you've kindy wrote? I' d like to try It out.
Once again, thank You.
I would do something like:
LocalUrl = convertToMacFullLocalUrl("myfile.htm")
Okay = baOpenURL(LocalUrl , "normal")
if Not(Okay) then
alert "There was a problem connecting with the web page. "