Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Open URL in browser via Photoshop

Participant ,
Nov 23, 2015 Nov 23, 2015

Is this possible? I don't need a clickable link for the user or anything, I just need the script to open a URL in the users default browser. How would I go about doing this?

TOPICS
Actions and scripting
9.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advisor , Nov 23, 2015 Nov 23, 2015

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();

};

Translate
Adobe
People's Champ ,
Apr 14, 2018 Apr 14, 2018
LATEST

For windows you can use

system ("explorer http://adobe.com")

By the way, the START command does exactly the same thing when the URL is pinned to it )

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Mar 23, 2018 Mar 23, 2018

I just installed 19.1.2. I plan on updating xtools, CSX, and ImageProcessorPro over the next month.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 11, 2018 Apr 11, 2018

I would love to check the new updated version 😉

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines