Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

233
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!