J
J
Johnem2020-07-23 17:05:16
Python
Johnem, 2020-07-23 17:05:16

How to open photoshop document through photoshop using python?

Hello, I need to open a .psd format document through Photoshop, using python, so that the code that follows after calling Photoshop is executed with Photoshop open. I tried, successfully, to do this through the os module, but through it (subsequent after the call) the code is not executed until Photoshop is closed. Tried to use subprocess.Popen() but repeated experiments were unsuccessful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex-bul, 2020-07-24
@Johnem

Try running it in a separate thread. That is, conditionally, create a function, write subprocess.Popen() in it with the necessary parameters and run it as a separate thread (threading module). Everything should work out

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question