Download multiple files and rename
I have a folder with 20+ .webloc files, all pointing to Google calendar .ics downloads. (The URLs all look like "https://www.google.com/calendar/.../basic.ics".) I want to be able to automate downloading each of these, but the problem is that, no matter what the calendar, the file is always named "basic.ics". What I'd like to do is 1) iterate through each .webloc in a specific folder, 2) download each one to another folder and 3) name the downloaded file according to the associated .webloc (ie, reed.webloc would download to reed.ics in a different folder).
My AppleScript skills are pretty lousy, and Automator does not seem to be able to manage this sort of renaming of the download. Anybody got any advice? Is there an existing script out there somewhere that I can modify for my needs?
17" MacBook Pro, Mac OS X (10.6.7), iPhone 4