I would like to build an AppleScript Application that when run will do the following:
-
Open up Safari and navigate to a specific URL, or a line delimited file, or CSV. This is not required but would make generating multiple screenshots of different pages a lot quicker.
-
Resize the Safari window to one of a number of sizes
-
Take a screenshot of the Safari window with the filename being the url along with the screen size
Best Answer
I only got a partial solution, which works apart from a few small issues.
First of all, you can not store the URL in the filename (due to slashes and special characters) so you'd need to specify the Website name.
But more importantly, so far the CSV import is not implemented. Is CSV really a hard requirement, or could you get the list of URLs in a different format? If not, please update your question with exemplary lines of your CSV file. I'll work on it and update my answer as soon as possible.