🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8099

[JS] Selecting files within a folder

#8099
From: Roy Marshall
Date: Thu, 09 Nov 2006 16:31
10 lines
980 bytes
I am needing to prompt for a folder, then put the contents (with the .csv mask) into an array "myFiles"

This is what I have after studying the reference manual:-
myFiles = app.folderObj.getFiles(["*.csv"]);
but, it doesn't work, returning the error:-
Object does not support the property or method 'folderObj'

Any ideas?

Roy
Technical Details
Message-ID: <3bc23acc.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,2ed4e7f4091dc09
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Roy Marshall" <rmarshall@rpm-repro.co.uk>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: [JS] Selecting files within a folder
Message-ID: <3bc23acc.-1@webcrossing.la2eafNXanI>
Date: Thu, 9 Nov 2006 08:31:30 -0800
Lines: 11
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit