Skip to main content
June 26, 2019
質問

Javascript vs. Python for Photoshop Scripting

  • June 26, 2019
  • 返信数 5.
  • 8749 ビュー

Hi Everybody,

I've toyed with Photoshop's JSX API toolset a little bit and am getting back into Photoshop automations. I hear a lot about Python and was wondering what (if any) would be the benefits of using Python with Photoshop versus Javascript.

Outside syntax preference and familiarity are there reasons to migrate?

このトピックへの返信は締め切られました。

返信数 5

Hal.long
Participant
May 28, 2020

Hey all,
I have created a python API for photoshop, maybe this can help your integration photoshop to your pipeline.

Below is the project link:

https://github.com/loonghao/photoshop-python-api

LG ludwig
Inspiring
June 24, 2020

This is great Hal Long! I've been scripting for Photoshop with Python for a few months now using win32com.client. As a personal preference programming with Python has been so flexible and faster for me using the library extracted from ScriptingSupport.8li. This Python API you've created looks pretty flexible to.

Participant
October 31, 2020

but that only works on windows, this API allows mac users to plug into it too?

June 26, 2019

Cool, it sounds like I should just stick with Javascript or JSX capabilities for batch scripting (e.g. add border to [folder][files]). I'm not looking to do anything seriously robust or marketable. I just want to have the ability to like save-for-web a whole folder of items.

I'm learning python now and trying to wrap my head around what it is and then next what NOT to learn as it's so vast.

Thanks everybody!

Tom Ruark
Inspiring
June 26, 2019

On windows, python has the ability to do VBScript.

If you want to do cross platform, win and mac, then python would be a *bad* choice as you would have to see if you can do AppleScript on the mac, not sure if there is a python module for that.

SuperMerlin
Inspiring
June 26, 2019

The advantage would be that you could talk to other applications at the same time as you can with VB, C# etc.

JJMack
Community Expert
Community Expert
June 26, 2019

Photoshop Scripting support plug-in does not support Python you would need to develop a  plug-in for Photoshop that add  Python scripting support to Photoshop.. Also note that Adobe Photoshop DOM  does not support all of Photoshop features. When scripting Photoshop often  Action manager code needs to be used. To script features not supported by Adobe DOM.  Adobe Plug-in  Scriptlistener records all the can be recorded in Action Manager code into two log files on is Action Manager code coded in VBS syntax the other in JavaScript syntax.

JJMack