Article View: adobe.photoshop.scripting
Article #294Re: How to load color table in a indexed mode file??
From: xbytor
Date: Tue, 24 Feb 2009 15:22
Date: Tue, 24 Feb 2009 15:22
24 lines
1479 bytes
1479 bytes
Robin_Massey@adobeforums.com wrote:
> When i run it, following error occurs:
>
> "ColorTable does not have a constructor".
Try moving this bit of code from the beginning of the file to the end.
> var clrTbl = new ColorTable();
> clrTbl.apply("/Users/robin/Desktop/AC5.act");
>
>
> Also, please tell where do I locate these files on mac: "//include "xlib/stdlib.js"
> //include "xlib/Stream.js"".
You don't need them. I removed the dependencies on these two file from the
script. Those lines of code do nothing now.
They are a part of my xtools package that can be found at
ps-scripts.sourceforge.net. There is a massive amount of code out there. That's
where the original implementation of the ColorTable script can be found.
-X
Technical Details
Message-ID:
<8190E248E573EFBC1879065BD2B3878C@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b806b8.-1@webcrossing.la2eafNXanI> <59b806b8.2@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,8878efe6e0d3c58e X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: xbytor@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Re: How to load color table in a indexed mode file?? Message-ID: <8190E248E573EFBC1879065BD2B3878C@in.webcrossing.la2eafNXanI> Date: Tue, 24 Feb 2009 07:22:21 -0800 References: <59b806b8.-1@webcrossing.la2eafNXanI> <59b806b8.2@webcrossing.la2eafNXanI> Lines: 28 User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit