Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

eldino

macrumors member
Original poster
Mar 8, 2007
65
0
Italy
Hi Guys,
my problem is this: i have a bunch (400+) of .webloc links (to webpages) that i'd like to batch download using a script or a workflow and then read them offline. I tried to accomplish this using Automator, but you have to manually specify the links you need soing something like:

"Get Specified URLs" -> "Download URLs"

so it's impossible!also saving this workflow as .app and dragging webloc in it doesn't work! Any suggestion?
I have nice Bash skills but I have nearly any Applescript skills.. I did a search on the web and on Mac sites but it seems i'm the only one in the world with such a problem!

The ideal goal'd be to obtain the same result of "Save page with name" function inside Firefox for every webloc I have.. but Firefox doesn't like Automator! or it does?

Thank you very much! any help is appreciated!
 
If you need to access the URL of a .webloc file from within your Bash script, you can use this command:

Code:
strings bookmark.webloc/rsrc | grep http | head -n 1

where "bookmark.webloc" is the name of your .webloc file.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.