Quote:
Originally Posted by Phazma
I would find it useful if there was a script that allows the user to put an url inside it. When running the script it should open the user's preferred browser and the desired webpage inside the browser.
|
This is from Mordi Chord Finder
Code:
-- Made by Mordi, Jan 2016
-- Function for opening a URL
function OpenURL(url)
local OS = reaper.GetOS()
if OS == "OSX32" or OS == "OSX64" then
os.execute('open "" "' .. url .. '"')
else
os.execute('start "" "' .. url .. '"')
end
end
retval_url, input_url = reaper.GetUserInputs("Type url", 1, "Enter url >", "http://www.")
if retval_url then
url = input_url
OpenURL(url)
end