🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8175

Re: [JS] Selecting files within a folder

#8175
From: Martin_Fischer
Date: Thu, 09 Nov 2006 16:39
15 lines
906 bytes
Hi Roy,

You should use a folder object to execute the method getFiles(), not just "folderObj".

Try this:

 
var myFolder = Folder.selectDialog();   
if(myFolder != null){ 
	var myFiles=myFolder.getFiles("*.csv"); 




Martin
Technical Details
Message-ID: <3bc23acc.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing
References: <3bc23acc.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,2ed4e7f4091dc09,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Martin_Fischer@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [JS] Selecting files within a folder
Message-ID: <3bc23acc.0@webcrossing.la2eafNXanI>
Date: Thu, 9 Nov 2006 08:39:25 -0800
References: <3bc23acc.-1@webcrossing.la2eafNXanI>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit