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.

: 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.

If you’re trying to count hom many files are ending with “.htm” or “.html” in the same folder you can try :


tell app "Finder"
  set c1 to count(files in ThisFolder whose name ends with ".htm")
  set c2 to count(files in ThisFolder whose name ends with ".html")
  display dialog (c1+c2) --
end

Jean-Baptiste LE STANG