Friday, March 26, 2010

COM support python - SaveAs

Where can I find some more information on using plugins within C++/python for COM intergration



refer to my original post

http://www.adobeforums.com/cgi-bin/webx/.3bbf2765.3bc3e441



I'm boucing back from the wall, cant find a solution for this

later
COM support python - SaveAs
I haven't tried python but there is a perl example.%26lt;br /%26gt;%26lt;br /%26gt;C:\Program Files\Adobe\Adobe Photoshop CS3 SDK\samplecode\automation\perl%26lt;br /%26gt;%26lt;br /%26gt;%26lt;br /%26gt;%26lt;cononix@adobeforums.com%26gt; wrote in message %26lt;br /%26gt;news:3bc3eecc.-1@webcrossing.la2eafNXanI...%26lt;br /%26gt;%26gt; Where can I find some more information on using plugins within C++/python %26lt;br /%26gt;%26gt; for COM intergration%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; refer to my original post%26lt;br /%26gt;%26gt; %26lt;a href=http://www.adobeforums.com/cgi-bin/webx/.3bbf2765.3bc3e441%26gt;%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; I'm boucing back from the wall, cant find a solution for this%26lt;br /%26gt;%26gt; laterCOM support python - SaveAs
See http://www.adobe.com/devnet/photoshop/pdfs/VisualBasicReferenceGuide.pdf



Here's how to get a reference to the application object in python; it supports all the same methods as visual basic does.



import time

from win32com.client import Dispatch

import os



ps = Dispatch(''Photoshop.Application'')

time.sleep(1)



print ''did it...''
  • lips
  • No comments:

    Post a Comment