This content has been marked as final.
Show 2 replies
-
1. Re: [JS] ScriptUI - URL Links in Dialogues
Trevorׅ Nov 20, 2012 12:52 AM (in response to Roy Marshall)Hi Roy,
Make a button and use a code like this one from Harbs
See http://forums.adobe.com/message/4390237#4390237
GotoLink() function GotoLink(url){ url = url || "http://in-tools.com"; if(app.version>6){ if(File.fs=="Macintosh"){ var body = 'tell application "Finder"\ropen location "'+url+'"\rend tell'; app.doScript(body,ScriptLanguage.APPLESCRIPT_LANGUAGE); } else { var body = 'dim objShell\rset objShell = CreateObject("Shell.Application")\rstr = "'+url+'"\robjShell.ShellExecute str, "", "", "open", 1 ' app.doScript(body,ScriptLanguage.VISUAL_BASIC); } } else { linkJumper = File(Folder.temp.absoluteURI+"/link.html"); linkJumper.open("w"); var linkBody = '<html><head><META HTTP-EQUIV=Refresh CONTENT="0; URL='+url+'"></head><body> <p></body></html>' linkJumper.write(linkBody); linkJumper.close(); linkJumper.execute(); } }Regards
Trevor
-
2. Re: [JS] ScriptUI - URL Links in Dialogues
Roy Marshall Nov 20, 2012 10:23 AM (in response to Trevorׅ)Nice. Thanks for that. Works a treat! (and thanks Harbs too)
Roy



