Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
tell application "Safari" -- or "Firefox" or "Google Chrome"
open location "http://ssl15.ovh.net/%7EmyDomain/myPage.html"
-- open location "http://ssl15.ovh.net/~myDomain/myPage.html" -- works also
end tell
You could try it from the Applescript Editor to see if your LC version is the culprit. If not then you could try the different browsers if there are differences.
1. Please try to use the *latest* stable LC 7, there were some Unicode issues with the first versions. May be this solves all problems.
2. In order to launch the URI with the *user's default browser* you may also try
(uses current system's launch services):
-- launches myURL with user's default browser, works with LC 6/7/8
put "https://ssl15.ovh.net/~myDomain/myPage.html" into myURL
switch the platform
case "MacOS"
put shell ("open " & myURL) into nirvana
break
case "Win32"
put shell ("explorer " & myURL) into nirvana
break
default
launch URL myURL
break
end switch
[-hh] wrote:1. Please try to use the *latest* stable LC 7, there were some Unicode issues with the first versions. May be this solves all problems.
2. In order to launch the URI with the *user's default browser* you may also try
(uses current system's launch services):
-- launches myURL with user's default browser, works with LC 6/7/8
put "https://ssl15.ovh.net/~myDomain/myPage.html" into myURL
switch the platform
case "MacOS"
put shell ("open " & myURL) into nirvana
break
case "Win32"
put shell ("explorer " & myURL) into nirvana
break
default
launch URL myURL
break
end switch
This code works! Thank you very much
BTW, I tried with the regular "launch URL" command with LC 7.14 but the problem is the same.
Aha, your post revealed a text encoding problem of LC's "launch URL" with MacOS 10.6.
You could think about reporting this as bug. Also MaxV's solution (without his workaround) shouldn't freeze LC.
Let me denote for completeness another candidate for launching an URL with the default webbrowser in case "launch URL ..." doesn't work.
This works here with several linux flavours and also on MacOS and also on Win 7/10 (if Python is installed):