Skip to main content
Participant
April 21, 2024
Question

Running jsx script with Photoshop in background?

  • April 21, 2024
  • 2 replies
  • 711 views

Hi!

I have a jsx script, working as needed in Photoshop.

Now, if I execute the script fron another app, Photoshop goes from minimized to open and show a loaded picture, processing, and so on, accordning to script.

I want to call this script so, that Photoshop stays in background and minimized. Is it possible?

Thanks!

 

This topic has been closed for replies.

2 replies

Legend
April 22, 2024

Have you tried inserting the Hide menu commend?

Participant
April 22, 2024

Sorry, can nor find this command. Can you please write an example? Thanks!

Legend
April 22, 2024

Photoshop 2024->Hide Photoshop menu

Stephen Marsh
Community Expert
Community Expert
April 22, 2024

I'm guessing no, but would be happy to be proven wrong. It's possible to call another app to the front from a script, however, if Photoshop gains focus again then as the host app of the running script that could be how it is.

 

 

Participant
April 22, 2024

Can you please explain, of show an example, how can I bring another app to front from script? Thanks!

Legend
April 22, 2024

You can either use BridgeTalk (between Adobe apps that support it) or app.system() to open an app from the command line. Details vary per platform. You can call VBA and Powershell on Windows and AppleScript on the Mac, along with command-line.

BridgeTalk.bringToFront('photoshop');