🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #2006

Re: Photoshop CE scripting problems

#2006
From: Colleen_Vermillion
Date: Thu, 24 Jun 2004 18:15
10 lines
1741 bytes
The easiest way to automate Photoshop without scripting is using C# and Visual Studio .NET. You just add references to interop.Photoshop and interop.PhotoshopTypeLibrary, then put "using Photoshop;"
"using PhotoshopTypeLibrary;" at the top of your file. You can see all the classes and interfaces in the Object Browser, and it's fairly straight forward to put together a method that does what ever steps you need it to.

The code I wrote works with the US version of Photoshop 7, so it's likely it will work with CE. Ugh, I just realized it's getting the COM interface from the scripting plug-in so this probably won't work.

I threw together a quick example that just opens an image you specify and desaturates it:

 <http://home.earthlink.net/~cevermillion/CommunityCode/>

You'll have to change the references in the solution to point at the COM interface for your version of Photoshop. The libraries show up under the "COM" tab of the add reference dialog.
Technical Details
Message-ID: <3bb4a534.5@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.esat.net!zen.net.uk!dedekind.zen.co.uk!fr.ip.ndsoftware.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.arcor.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <3bb4a534.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5839,130ad3c41bfca033
X-Google-Attributes: gidf5839,public
From: Colleen_Vermillion@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.esat.net!zen.net.uk!dedekind.zen.co.uk!fr.ip.ndsoftware.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.arcor.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.photoshop.scripting
Subject: Re: Photoshop CE scripting problems
Message-ID: <3bb4a534.5@webx.la2eafNXanI>
Date: Thu, 24 Jun 2004 11:15:19 -0700
References: <3bb4a534.-1@webx.la2eafNXanI>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit