Functions for Web

Open in browser by Marc Autret

function openInBrowser(/*str*/url)
{
    var    f = new File(Folder.temp.absoluteURI +
        '/url_' + (+new Date()) + '.url' );

    var fStr = "[InternetShortcut]\rURL="+url;

    f.open('w');
    f.write(fStr);
    f.close();
    f.execute();
    f.remove();
}

// Test:
openInBrowser("http://www.indiscripts.com/");