Every File in selection?

: Hi, My name is David Coffey.

: Recently I have been trying to create an applescript that returns the name of
: every file ending in “.htm” or “.html” but have met no
: success. I am posting this to ask for help. All my expertise is used on
: making the scripts more “user friendly”. and not on retrieval of
: data. If anyone can help me get the list of file names from a folder using
: apple script, Please email me at the address above.


set theFldr to (choose folder)
tell application "Finder"  to set nameList to ¬
   name of every file of theFldr whose ((name ends with ".htm") or ¬
    (name ends with ".html"))

Marc K. Myers
Marc@AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

3/4/02 4:37:34 PM