Article View: adobe.photoshop.scripting
Article #161Re: Save a curves preset via a script
From: Phibbus
Date: Wed, 04 Mar 2009 22:14
Date: Wed, 04 Mar 2009 22:14
7 lines
1658 bytes
1658 bytes
Holy cats, Michael... it would have taken me a month in a room with nothing else in it to work that out. I was having enough trouble just figuring out how to get .fromStream to work as intended for re-inserting the descriptors (I am not hardcore). All I did was pop in the custom file-naming from my original script, and your code is chugging away happily. The 2 step script spat out by the listener (with the re-naming again insterted) should re-load all of those .acv's nicely.) I'm still wondering what I was doing wrong with the .fromStream. I got all of the descriptors out as binary files with .toStream just fine, and while I could read them back into a var using .toStream, I could not figure out how to use it to actually replace the existing ActionDescriptor of the layer. I suspect my call to get reference to the existing layer may need to be phrased differently. At any rate, I can't thank you enough. I'm going to hop over to ps-scripts as soon as I get this wrapped up.
Technical Details
Message-ID:
<59b81a29.6@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossingReferences:
<59b81a29.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,fbf81dcb10c84f7c X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Phibbus@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Re: Save a curves preset via a script Message-ID: <59b81a29.6@webcrossing.la2eafNXanI> Date: Wed, 4 Mar 2009 14:14:56 -0800 References: <59b81a29.-1@webcrossing.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit