Joe Barwell wrote: > Not sure how to do this with fly-speck-Akua, but using Tanaka's osax, > this seems to work: > > set f to choose folder > set l to MT List Files f of type "TEXT" name contains ".htm" return > as alias with sub folders > MT Change File Info l creator type "R*ch" It works for me too, thanks - also when I remove "of type "TEXT"", which I think I have to do as some of the .html files don't seem to have Macintosh file types. > Note that it is slightly imprecise in that a filename may contain the > target string other than at the end, as you desire. Not really, that's fine. I was trying to do "whose name contains" the other night when I struck out, in fact, and would have been happy if that had worked. > Using a Finder > "whose"-type clause would be more precise (the following is all one > line, assuming the first line of the preceding example): > > tell application "Finder" to set creator type of every file of entire > contents of folder f whose file type is "TEXT" and name ends with > ".htm" or name ends with ".html" to "R*ch" But then you supposably have "entire contents" problems again. > >Yeah, that worked perfectly and took all of two seconds. I guess I'm a > >masochist for trying to script it anyway, even figuring that the utility > >would work. Thanks. > > Masochjst or Sadjst? I don't quite get you there, but if you or anyone has a Mac scripting refresher course with practical examples to recommend, I'd appreciate hearing about it. I'm hesitant to go plowing through the books I read a couple of years ago (Tao, Goodman, Applied Mac Scripting), not only because I'm lazy and don't have a lot of time, but also because I'm afraid they've been outdated in some ways by changes in AppleScript. I've been planning on going through the AppleScript Guidebook modules I installed with 9.1, though I'm not sure how useful those are going to turn out to be. Thanks, Roy McCoy ------------------------------
This archive was generated by hypermail 2b29 : Sun May 27 2001 - 12:00:29 AEST