Skip to main content
Participating Frequently
November 24, 2018
Question

Need to launch a link via browser from Photoshop action

  • November 24, 2018
  • 2 replies
  • 1831 views

Hi all, I was using CS6 and made a custom menu with Configurator 4 to create a job workflow.

we updated to PS CC 2019 and configurator is not supported or its menus.

they went to CEP, html or something.. no support.

one of the most useful features i created was a button that opened a webpage via browser by incerting a script in the menu using configurator 4

____script-----------

var strPlugInsFolderDirectory = localize( "$$$/LocalizedFilenames.xml/SourceDirectoryName/id/Extras/[LOCALE]/[LOCALE]_Plug-ins/valu e=Plug-ins" );

var htmlFileName = app.path.toString() + "/" + strPlugInsFolderDirectory + "/Panels/Topps MLB_II/content/index.html";

File(htmlFileName).execute();

---------end----------------

this pointed to an html file on my hard drive that contained an easy open url script.

I don't know how this script works but it did the job, i don't even know what kind of script it is.....

with that being said.

*** I need to have a script that opens a web page via default browser. then make an action to do this.

i found Configurator Reloaded and in the process of making a new menu. but it only supports a script file.

can i make  or have to have a stand alone script to import to photoshop or is there an easier way.

any help will be great

Discussion moved from Photoshop to Photoshop Scripting by moderator

This topic has been closed for replies.

2 replies

JJMack
Community Expert
Community Expert
November 25, 2018

rkteach003  wrote

*** I need to have a script that opens a web page via default browser. then make an action to do this.

i found Configurator Reloaded and in the process of making a new menu. but it only supports a script file.

I would think a Script should be able to write and html file to the user's temp then through it over the wall to have the users OS  open it with what the html extension is associated with.  Normally the users default browser.  An Action can run a script menu File>Script>script name.  I would think the hard part is getting the Script and Action installed on all your users machines into all version of Photoshop they use.

I know nothing about Configurator Reloaded or building a extension.  I though Adobe Configurator changed with each  so I was not interested.

Here is a simple scriprt I use to open a url for help with my Photoshop Photo Collage Toolkit

// A Photoshop Script by JJMack's

// This script is supplied as is. It is provided as freeware.

// The author accepts no liability for any problems arising from its use.

#target photoshop

app.bringToFront();

/*

<javascriptresource>

<name>HelpPhotoCollageToolkit</name>

<about>$$$/JavaScripts/HelpPhotoCollageToolkit/About=Web Help for JJMack's Photo Collage Toolkit.^r^rCopyright 2010 Mouseprints.^r^rOpen Browser Toolkit Help Page</about>

<category>JJMack's Collage Script</category>

</javascriptresource>

*/

try{

   var URL = new File(Folder.temp + "/PhotoCollageToolkit.html");

   URL.open("w");

   URL.writeln('<html><HEAD><meta HTTP-EQUIV="REFRESH" content="0; url=http://www.mouseprints.net/old/dpr/PhotoCollageToolkit.html"></HEAD></HTML>');

   URL.close();

   URL.execute();   // The temp file is created but this fails to open the users default browser using Photoshop CC prior Photoshop versions work

}catch(e){

alert("Error, Can Not Open.");

};

JJMack