Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: Hyperlink in the scripts's UI

$
0
0

Gustavo,

as far as I know that's not possible within an Alert. But if you resort to popping up a dialog, you can attach an eventListener like this one:

 

dlg.myText.addEventListener('click', (function() {  var fname, shortcut;  fname = "_shortcut.url";  shortcut = new File("" + Folder.temp + "/" + fname);  shortcut.open("w");  shortcut.writeln("[InternetShortcut]");  shortcut.writeln("URL=http://www.mywebsite.com");  shortcut.writeln();  shortcut.close();  shortcut.execute();  $.sleep(4000);  return shortcut.remove();}), false);

 

Not very much elegant I know, but it works ;-)

Cheers,

 

Davide Barranca

www.davidebarranca.com


Viewing all articles
Browse latest Browse all 27456


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>