Article View: adobe.scripting.indesign
Article #20226How to get files whose name ends with (anything in a list) ?
From: Richard Ronnback
Date: Sat, 19 Oct 2002 10:54
Date: Sat, 19 Oct 2002 10:54
11 lines
1289 bytes
1289 bytes
This is probably very simple but I can't figure out how to do it.
I need to get a list of files whose file names ends with any of the file suffix I set in a list. Below is a pseudo-code example of what I want to do. Can anybody help?
tell application "Finder"
set myFileSuffixes to {"PDF", "EPS", "TIFF", "TIF"}
set myFolder to (choose folder with prompt "Please select the folder that contains the files you want to place.")
set myFiles to files of myFolder whose name ends with (whatever is in myFileSuffixes)
end tell
Technical Details
Message-ID:
<1de63b23.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.rt.ru!rt.ru!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,13420ed1ecfce0f3 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-10-21 03:57:48 PST From: "Richard Ronnback" <richard.ronnback@telia.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.rt.ru!rt.ru!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: How to get files whose name ends with (anything in a list) ? Message-ID: <1de63b23.-1@WebX.la2eafNXanI> Date: Sat, 19 Oct 2002 03:54:44 -0700 Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit