🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #199

Re: ResizeImage using dimensions read from text file

#199
From: JeffreyDeRousse
Date: Tue, 10 Mar 2009 16:28
16 lines
1294 bytes
Thanks for the reply.

I have tried this several different ways and am still not seeing what I can do.

Example.
I put only 289 in the text file. So all that is read in is "289" into the variable "largePrefsContents" minus the quotes around 289.
The complete statement is...
        docRef.resizeImage(largePrefsContents,null);
  Just above resizes the image to 1 X 7 pixels.

I did the following...
var largePrefsContents = 289
        docRef.resizeImage(largePrefsContents,null);
  This one works great.

It has to be something with how the text variable is stored but unfortunately I haven't dealt with reading paramaters from a text file before so I am stumped.
Technical Details
Message-ID: <59b82c0d.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b82c0d.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,4e7306c2b43f139b
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: JeffreyDeRousse <jderousse@vertisinc.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Re: ResizeImage using dimensions read from text file
Message-ID: <59b82c0d.1@webcrossing.la2eafNXanI>
Date: Tue, 10 Mar 2009 09:28:48 -0700
References: <59b82c0d.-1@webcrossing.la2eafNXanI>
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit