Last active
June 13, 2017 22:27
-
-
Save stevechap416/0235097c4d5112308069d6f7a17e8630 to your computer and use it in GitHub Desktop.
Open Web Browser from Photoshop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openURL("www.google.com") | |
function 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(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment