anybody know how to made code that would automatically pull the filename of a file, remove (-) and insert the name into the alt text?
That sounds like a job for server side code -- PHP, ASP, Perl, Python, etc, etc... It is not something you can or should be doing 'client-side' in the browser using HTML or Scripting. NOT that the filename would be particularly descriptive in most cases -- at least in terms of doing ALT's job... kind of a ha'shakesh approach to alt text. I'd more likely use an array or database server-side to store more meaningful descriptions of the images than would fit into a filename. Unless you are REALLY gonna make those filenames meaningful. In my "poor man's" news handler I actually do that for each article's title -- I have the date of the article, an underscore, the title of the article (with spaces in the filename since it's server-side access) followed by the extension ".article.txt". PHP's "explode" function then makes it easy. I just str_replace '.article.txt' off the end of it, then use explode to separate the date from the rest of the text. Again, server side code, no real way to do it client side without something like javascript, and one really shouldn't generate an accessibility aid client-side using a technology that a lot of people who NEED alt text will either not even have, or have intentionally blocked from running.