Article View: adobe.photoshop.scripting
Article #2005Re: Read text file, open images
From: Colleen_Vermillion
Date: Thu, 24 Jun 2004 17:44
Date: Thu, 24 Jun 2004 17:44
9 lines
1360 bytes
1360 bytes
It would help to have an example line from your text file and the exact error you're getting. I'm doing all my Photoshop automation in C#, so I'm not real familiar with Javascript, but in the sample scripts from Photoshop CS, open doesn't take a string, it takes a file reference. Here's the sample // Copyright 2002-2003. Adobe Systems, Incorporated. All rights reserved. // Open a Photoshop document located in the Photoshop samples folder on the Photoshop CD. // You must first create a File object to pass into the open method. var fileRef = new File(app.path.toString() + "/Samples/Dune.tif"); open (fileRef); fileRef = null;
Technical Details
Message-ID:
<3bb4bc89.2@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb4bc89.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5839,3e19365c4290ecca 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!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.photoshop.scripting Subject: Re: Read text file, open images Message-ID: <3bb4bc89.2@webx.la2eafNXanI> Date: Thu, 24 Jun 2004 10:44:01 -0700 References: <3bb4bc89.-1@webx.la2eafNXanI> Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit