Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

238
Vistas
How can I open a link in Chrome from Photoshop to download an image?

I'm creating a script in Photoshop using JavaScript that I want to open chrome for all types of windows users and open a link in chrome. After the chrome is open and link is insert I want to complete a form with values that I know and submit the form, the new link that is generated I want to open and download the image.

Using my code the error I received on Photoshop is "the window is undefined", but if I delete window.open line the chrome open using the script in Photoshop.

Here is my code. Any solutions?

var commandtoRun = "C:\\PROGRA~1\\Google\\Chrome\\Application\\chrome.exe"; 
app.system(commandtoRun,"","","open","1");
var windowObjectReference;

window.open( 
    "https://www.yourURL.com", "_blank");

I did it with

window.onload = function() {
    window.open("https://www.w3schools.com");
}
//openRequestedPopup();

//file.remove();  
var site="//mylinkwithform"; //your side

      if (  $.os.indexOf("Windows") != -1 ) 

      {//SYSTEM IS ONE OF THE WINDOWS
                          app.system("cmd.exe /c\"start http://"+site+"\"" );
                }
                          else{//MUST BE MAC
                          system.callSystem("open http://"+site);
          }

How i insert the values in the form from the site and submit the form?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda