🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8606

Re: [JS] reading variable CSV file

#8606
From: Roy Marshall
Date: Thu, 12 Oct 2006 13:57
13 lines
1015 bytes
Dave

I have tested it and come up with this:-

myFolder = Folder("~/Desktop/UStar/XLS");
myFiles = myFolder.getFiles();
myFile = myFiles[1].name;
myFilePath = myFiles[1];

This gives me the file name for future use, and the path for immediate use. It took me a while to figure that JS/ID also sees resource fork files on the Mac! Hense the 'myFiles[1]' not 'myFiles[0]'

Many thanks again Dave
Roy
Technical Details
Message-ID: <3bc1f182.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing
References: <3bc1f182.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,25b80f6897eeea18
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Roy Marshall" <rmarshall@rpm-repro.co.uk>
Newsgroups: adobe.scripting.indesign
Subject: Re: [JS] reading variable CSV file
Message-ID: <3bc1f182.2@webcrossing.la2eafNXanI>
Date: Thu, 12 Oct 2006 06:57:17 -0700
References: <3bc1f182.-1@webcrossing.la2eafNXanI>
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing