FW: Question about command revGoURL
Old ř ich Peroutka
operoutka at volny.cz
Mon Aug 2 13:41:45 EDT 2004
Hi Judy,
thank you Judy for your respond and I try to explain what I'm doing. I want
to open HTML file that is located on my local Hard Drive. This file is
"myFile.htm". The absolute path to this my file is /Macintosh HD/Mac
temp/data/myFile.htm, this path contains 2 spaces in name of folders
"Macintosh HD" and "Mac temp".
Than if I write:
revGoURL myDataFolder & "myFile.htm"
-- myDataFolder contains the path on local HardDrive (=/Macintosh HD/Mac
temp/data) to file "myFile.htm"
-- myFile.htm is file in folder data on local Hard Disk, that I want to open
in Internet Explorer (or other default browser).
After the Internet Explorer is open, one is looking for file with path:
Macintosh%20HD/Mac%20temp/data/myFile.htm. This path doesn't exist.
Sorry for my English, thanks
Oldrich
>> Hi,
>>
>> I am not certain I correctly understand what you are doing, but if what
>> you are trying to do is tell Rev the path of your web browser, you needn't
>> do that. If all you want to do is have Rev open a web browser and then go
>> to some URL, all you need to do is:
>>
>> on mouseUp
>> revGoURL "http://www.yourURL.com"
>> end mouseUp
>>
>> Does this help or am I completely not understanding what you are trying to
>> do?
>>
>> Judy
>>
>> On Thu, 29 Jul 2004, Old[ISO-8859-2] ?ich Peroutka wrote:
>>
>>> Hi all,
>>>
>>> Can anybody help me with the command ?revGoURL?? I?m the beginner with
>>> REVOLUTION (Runrev 2.2 for Mac OS 9.2.2 cz) and I have this problem.
>>>
>>> My script is:
>>>
>>> on mouseUp
>>> ....
>>> ....
>>> -- define myDefaultFolder and myDataFolder
>>> put ?/Macintosh HD/Mac temp/myFolder? into myDefaultFolder
>>> put myDefaultFolder & ?/data/? into myDataFolder
>>> -- ?myDataFolder? is /Macintosh HD/Mac temp/myFolder/data/
>>> .....
>>> .....
>>> set defaultFolder to myDataFolder
>>> revGoURL myDataFolder & ?myFile.htm?
>>>
>>> or only
>>>
>>> revGoURL ?myFile.htm?
>>>
>>> end mouseUp
>>>
>>> It is one and the same if I write the first or the second way. The
>>> performance (path of file that Internet Explorer is looking for) is other
>>> but the result is the same ? Error in opened ?Internet Explorer? that one
>>> tells me ?the file doesn?t exist?.
>>>
>>>
>>> The problem is, that all spaces in path (myDataFolder) are replaced with
>>> ?%20?. My ?Internet Explorer? is started OK but it is searching file
>>> with path ?/Macintosh%20HD/Mac%20temp/myFolder/data/myFile.htm?.
>>> This path doesn? t exist of course. Why the spaces but only the spaces in
>>> the path of file are replaced with %20. ? %20? is the HEXcode of space.
>>>
>>> If I write:
>>>
>>> launch myDataFolder & ?myFile.htm? with path2Explorer & ?Internet
>>> Explorer?
>>> -- in path2Explorer is path to the programm ?Internet Explorer?.
>>>
>>>
>>> All is OK. But by this way I have to know where my Internet Explorer on
>>> HarDrive is (or alternative browser), path to him.
>>>
>>>
>>> Thanks all
>>>
>>> Oldrich
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>
>>
------ End of Forwarded Message
More information about the use-livecode
mailing list