Launch a Web Browser
Launch a Web Browser
From xtools:
Code: Select allfunction openURL(url) {
var fname = "shortcut.url";
var shortcut = new File(Folder.temp + '/' + fname);
shortcut.open('w');
shortcut.writeln('[InternetShortcut]');
shortcut.writeln('URL=' + url);
shortcut.writeln();
shortcut.close();
shortcut.execute();
shortcut.remove();
};
Code: Select allfunction openURL(url) {
var fname = "shortcut.url";
var shortcut = new File(Folder.temp + '/' + fname);
shortcut.open('w');
shortcut.writeln('[InternetShortcut]');
shortcut.writeln('URL=' + url);
shortcut.writeln();
shortcut.close();
shortcut.execute();
shortcut.remove();
};
Launch a Web Browser
It really works and it has also helped me in making the site I was creating. The problem here in me I think is the other components like brushes and marquee tool has not working. Did I do anything wrong or maybe there is another codes for it to work?