tag:blogger.com,1999:blog-5843977256413530490.post8591884194828575886..comments2026-03-26T07:49:20.016-05:00Comments on Tech Art Tiki: Photoshop scripting with PythonUnknownnoreply@blogger.comBlogger60125tag:blogger.com,1999:blog-5843977256413530490.post-45390840006119804112025-05-27T04:28:50.351-05:002025-05-27T04:28:50.351-05:00Hey! Thanks for such a great tutorial. I&#39;ve be...Hey! Thanks for such a great tutorial. I&#39;ve been looking into developing Photoshop tools for a while now and this blog has by far been the most useful one. UXP is definitely not something I would like to use, even if COM and ports may be harder to understand. <br /><br />Maybe it&#39;s because I&#39;ve never used JS, but definitely love how you&#39;ve broken everything down :)<br /><br />Much love from 2025 &lt;3Lumi_Vhttps://vkg_art.artstation.com/noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-38968019562710725352022-07-04T06:31:44.411-05:002022-07-04T06:31:44.411-05:00Hi, Greetings ! We are brisklogic (www.brisklogic...Hi,<br />Greetings !<br /><br />We are brisklogic (www.brisklogic.co).<br />Dynamo&#39;s of digitization” with a remarkable heritage.<br />Build digital products faster, smarter, and scalable.<br />Brisklogic is Solutions for a small digital planet.<br />Develop your business faster with less efforts with Us. <br />Let’s Make Things Better.<br />HELLO@BRISKLOGIC.CO<br /><br /><br />Sr. Business Manager<br />Thanks &amp; Regards,<br />BRISKLOGIC IT SOFTWARE COMPANYhttps://www.brisklogic.co/noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-46868913812965631672020-03-26T02:20:49.383-05:002020-03-26T02:20:49.383-05:00excellent tutorial I am searching for long days p...excellent tutorial I am searching for long days <a href="http://www.pythonloop.com/" rel="nofollow"> python Tutorials</a><br /><br />Best Python Tutorialshttp://www.pythonloop.com/noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-84983821294570791662020-03-26T02:19:34.093-05:002020-03-26T02:19:34.093-05:00This comment has been removed by the author.sureshhttps://www.blogger.com/profile/06500164292000602707noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-34669814362927347452020-01-27T06:59:37.482-06:002020-01-27T06:59:37.482-06:00how to run .ATN file using phthon?how to run .ATN file using phthon?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-11746963085873250182018-06-23T08:29:08.017-05:002018-06-23T08:29:08.017-05:00It&#39;s 10 years later since the tutorial has bee...It&#39;s 10 years later since the tutorial has been written and there&#39;s not much more sources to look for knowledge about this topic ;) Thanks a lot, finally managed to understand the SaveAs options objects. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-84172641510571819042017-12-14T08:32:41.991-06:002017-12-14T08:32:41.991-06:00This comment has been removed by a blog administrator.The Smart Digitalhttps://www.blogger.com/profile/07688492174411443425noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-77770731461835637452016-10-16T16:08:15.547-05:002016-10-16T16:08:15.547-05:00amazing post, thank you a billion !!amazing post, thank you a billion !!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-37173273980730168872014-10-22T13:44:33.226-05:002014-10-22T13:44:33.226-05:00Evan, your post was enormously helpful, thank you!...Evan, your post was enormously helpful, thank you!Rustomjihttps://www.blogger.com/profile/14755866358619837536noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-83181912463185768132014-10-16T10:18:23.255-05:002014-10-16T10:18:23.255-05:00I had been wondering about this for a while and si...I had been wondering about this for a while and since this helped me so much I figured I would share the answer no matter how basic it may be.<br /><br />When I tried to make all this work I had some troubles. Not only did I have multiple versions of photoshop but I had multiple bit versions (CS5 x86, CS6 x86/x64, CC 2014. I knew I had to use win32.client.Dispatch(Adobe.Application) to connect to the app and open a document but I could not connect to the Adobe.ActionReference or Adobe.ActionDescriptor<br /><br />I tried to find out why my Application returned a timeout error and it seems it revolved around the Generic call to the Photoshop COM. I needed to specify the application version...but what was the number? <br /><br />After much searching I found in the Windows Registry all Photoshop call actions and Versions to use. <br /><br />If you want to make an Action Manager interaction without photoshop timeing out specify the version<br /><br />Photoshop Application COMM Dispatch Commands Action Manager<br />(will use the recent version of photoshop installed)<br /><br />win32.client.Dispatch(<br />Photoshop.Application.80<br />Photoshop.ActionDescriptor.80<br />Photoshop.ActionReference.80<br />)<br /><br />For a full list of commands specific to you go to Start-&gt;(Search)regedit -&gt; Locate Photoshop.X registry detailsEvannoreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-57078469635220505302013-08-08T07:50:43.209-05:002013-08-08T07:50:43.209-05:00I didn&#39;t see what Nico said. Well actually, it...I didn&#39;t see what Nico said.<br />Well actually, it&#39;s not really my code that is the problem. The real issue, is that it slows down the actions in Photoshop itself. For example, cancelling an action will not be immediate. Or switching from one layer to another will take 1 second instead of being instantaneous.Johttps://www.blogger.com/profile/15496672064051222081noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-3265269653588554592013-08-07T12:02:36.505-05:002013-08-07T12:02:36.505-05:00Thanks for the reply :) Well the exact code is a ...Thanks for the reply :)<br /><br />Well the exact code is a lot to read.. I actually didn&#39;t write it, so I have to dig in it before I can get out some simplified code.<br /><br />But I&#39;ll try the timer thing, see what it gives. Thanks for the tip !Johttps://www.blogger.com/profile/15496672064051222081noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-11591380926551686572013-08-07T10:10:11.428-05:002013-08-07T10:10:11.428-05:00I still read this! :) I don&#39;t have experience ...I still read this! :)<br />I don&#39;t have experience with that exact kind of setup (JSX-&gt;Py-&gt;COM-&gt;PS), but...<br /><br />If you have that kind of circular connection in the tools, I&#39;d suspect it&#39;s waiting around for the last &quot;message&quot; to be processed, which is starving the UI and making it unresponsive. Hard to say without seeing the exact code, however.<br /><br />I would suggest adding some timing code and profiling it, see where the time is going.Adam Pletcherhttps://www.blogger.com/profile/10166087039826579621noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-34268005118120762662013-08-07T03:52:07.003-05:002013-08-07T03:52:07.003-05:00Hi, I&#39;m not sure if anyone reads this post any...Hi, I&#39;m not sure if anyone reads this post anymore but I have a question regarding python interfaces in photoshop.<br /><br />My problem is that it seems to slow down Photoshop a lot. I have a simple interface generated in Flash that call some jsx script themselves calling a PyQt script using com to interact with Photoshop. I&#39;m not entirely sure it is the simplest way to go, but it does the trick. Only thing is, for some users, it slows down the Photoshop interface. <br />Any idea where it might come from ? Any suggestion would be appreciated ! ThanksJohttps://www.blogger.com/profile/15496672064051222081noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-53930596551466663062013-03-19T22:53:01.675-05:002013-03-19T22:53:01.675-05:00Wow, really useful. Thank you for the post!Wow, really useful. Thank you for the post!Jay Goodmanhttps://www.blogger.com/profile/00546130330925306769noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-20937633796811537122012-05-15T13:52:06.130-05:002012-05-15T13:52:06.130-05:00@当当 That is either a typo in the VBScript document...@当当<br />That is either a typo in the VBScript documentation, or perhaps a difference between the VBScript and COM interfaces.<br /><br />The &quot;Export&quot; function on document objects is still there in Photoshop CS5 and callable from COM/Python, and there is no function named &quot;ExportDocument&quot;.Adam Pletcherhttps://www.blogger.com/profile/10166087039826579621noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-61447493260632463782012-05-15T01:11:35.556-05:002012-05-15T01:11:35.556-05:00this is a life saver post, thank you guys. But I g...this is a life saver post, thank you guys. But I get a question, when I look into the documentation of photoshop_cs5_vbscript_ref.pdf I found there&#39;s only ExportDocument function there but no Export function.<br /><br />How do you guys figured it out this ?当当https://www.blogger.com/profile/07246945447020156729noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-56900514510812857612012-04-17T15:47:14.503-05:002012-04-17T15:47:14.503-05:00I&#39;m having the same selection problem that Nic...I&#39;m having the same selection problem that Nico solved using comtypes, is there a fix for win32com yet? And if not, can someone explain the comtypes solution? Is it a replacement for win32com?Chris Vhttps://www.blogger.com/profile/10446586233707566023noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-23175786073418591882012-04-04T19:00:50.598-05:002012-04-04T19:00:50.598-05:00All this has worked amazingly for me.. except for ...All this has worked amazingly for me.. except for some damn reason the application.documents object doesn&#39;t respond to any of it&#39;s documented methods or properties except for .parent (and although not documented the .count) Anyone else run into this?Captain Denis Super Awesomehttps://www.blogger.com/profile/08185163340802977331noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-8222594002981895712012-01-28T16:39:04.982-06:002012-01-28T16:39:04.982-06:00Great post, it really helped me getting started wi...Great post, it really helped me getting started with PyCOM Photoshop scripting.<br /><br />How can I access Photoshop constants like Units and TypeUnits? I tried win32com.client.constants.Units but I get an AttributeError...<br /><br />Thanks.Daniel Serodiohttps://www.blogger.com/profile/04702510073994831969noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-11471251491949160272012-01-28T16:37:24.473-06:002012-01-28T16:37:24.473-06:00This comment has been removed by the author.Daniel Serodiohttps://www.blogger.com/profile/04702510073994831969noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-80069546912171887832012-01-14T05:22:11.753-06:002012-01-14T05:22:11.753-06:00Thanks nico for the js tip :D How I could pass par...Thanks nico for the js tip :D<br />How I could pass params?, anything like:<br /><br />var checkout = new File(&quot;/sandbox/photoshop/pyCheckOut.py 1024 768 AnyName&quot;);<br />checkout.execute();<br /><br />Thanks!!Francis Vegahttps://www.blogger.com/profile/03686473026706092691noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-79181030384430348122012-01-13T16:03:32.534-06:002012-01-13T16:03:32.534-06:00Nico, thanks for the help, that was almost too eas...Nico, thanks for the help, that was almost too easy. Knowledge is king! Thanks again.Chris Vhttps://www.blogger.com/profile/10446586233707566023noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-84528400889427925392012-01-13T14:35:36.548-06:002012-01-13T14:35:36.548-06:00Great info, thanks!...but I have a question: How d...Great info, thanks!...but I have a question: How do you access the python script from within PS? I read that one could create a simple javascript to call the python script, but I&#39;m not sure how it&#39;s done, I know little about javascript. I&#39;ve tried<br /> System.Diagnostics.Process.Start(&quot;python.exe&quot;, &quot;C:\\psTest.py&quot;);<br /> but it doesn&#39;t seem to do anything.<br />Also, is there a way to create a custom menu in PS where I can place my scripts? I do this in Maya for our company tools, and ideally I&#39;d like to maintain a similar setup in PS.Chris Vhttps://www.blogger.com/profile/10446586233707566023noreply@blogger.comtag:blogger.com,1999:blog-5843977256413530490.post-70935061590447925292011-11-07T05:05:17.518-06:002011-11-07T05:05:17.518-06:00Saved my day. Thank you :).Saved my day. Thank you :).xxvii-xxiv-xivhttps://www.blogger.com/profile/07471479001533181116noreply@blogger.com