[QUOTE=akira;23468]Yes, the script path should go into the “call” as well, each argument should be passed separately.
photoshop = r"X:\Adobe\Adobe Photoshop CC (64 Bit)\Photoshop.exe" #appending script to the end of this raw string
script = r"X:\Lolpath est.jsx"
texture = r"X:\Lolpath est.psd"
subprocess.Popen((photoshop, script, texture))
Yes that made it work on the Python side of things.
But now another issue came up - and it’s always like this: solve one problem, another appears on the next step right after. 0% actual developing, 100% trying to sort out bullshit. That’s what it has been like so far
Now what I have is Photoshop complaining.
Error 8800: General Photoshop error occured. This functionality may not be available in this version of Photoshop.
This error is just that - bullshit. Because when I execute the script from inside Photoshop, it works as it should.
The script I’ve been testing is this one: http://blog.xshock.de/content/resources/scripts/xshock_selectlayerbelow.zip
I know this because even when I try to call on any NATIVE Photoshop script, I get an error!! Trying to execute an extendscript (jsx) I get this instead:
IOError: General Photoshop error occured. This functionality may not be available in this version of Photoshop.
So I thought that maybe subprocess is trying to execute the script before the workfile is open, so I opened up photoshop and the workfile and then ran the Python code:
Same problem. Running the script via Python triggers that weird error - running the script inside Photoshop manually works as a charm.