Skip to main content
Inspiring
January 10, 2022
Answered

Start Photoshop & run script without user interaction

  • January 10, 2022
  • 2 replies
  • 3563 views

Hey

 

I'm in need of running script in photoshop without it 

Asking for that.

I want to start PS & run Script, ur run script in already running PS.

I don't want to add settings entry in PSUserConfig.txt file. 

Any ideas how that can be done?

I know that vscode/extendtoolkit are able to send messages to PS without that "pop-up" as thats how we run scripts there... any idea how to piggy back off them?

My current command

"C:\Program Files\Adobe\Adobe Photoshop 2022\Photoshop.exe" -r "C:\Users\Master\Desktop\yaya.jsx"

Regards

Dariusz

This topic has been closed for replies.
Correct answer Kukurykus

Why don't you make part of script that edits that .txt file to update of necessary line?

2 replies

Kukurykus
KukurykusCorrect answer
Legend
January 10, 2022

Why don't you make part of script that edits that .txt file to update of necessary line?

Inspiring
January 10, 2022

Id rather not edit photoshop user preferences just so I can hide my evil scripts 😄 Also if the file is located in secure loca tion /program files. I probably wont be able to anyway...

 

Kukurykus
Legend
January 10, 2022

It's not in secure only read Program Files folder, but in read/write User Preferences folder.

c.pfaffenbichler
Community Expert
Community Expert
January 10, 2022

If I undersatand you correctly you could try using 

File > Scripts > Script Events Manager 

instead and link the Script to the »Start Application«-event. 

Inspiring
January 10, 2022

Hey

Interesting idea, thank you! But it wont work, I want to send different scripts /etc.

I dont want user to have to configure anything except for just running my app & that run scripts in ps.

Regards

Dariusz