[python-win32] DoAction problem

Sylvain.Fejoz at ville-ge.ch Sylvain.Fejoz at ville-ge.ch
Thu Jul 25 05:58:59 EDT 2019


Hello.

New in Python and coding.

My goal : 
Apply recorded actions in Photoshop to many folders and subfolders 
containing images.

My inspiration : 
Web page explaining a Python code using pywin32 : 
https://vsfxryan.com/portfolio/python-photoshop-action-scripts/, but I do 
not want to define functions, I am too much beginner for this.

Problematic code :
#run action script which opens the file, convert it to jpg, save and close 
it.
psApp.DoAction( actionScript, 'jpg_q8')

Error message :
NameError: name 'actionScript' is not defined

Could you please help me solve this?

Thanks :)

Sylvain

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20190725/3e08aa4e/attachment.html>


More information about the python-win32 mailing list