Open a list of URL’s in Google Chrome using Mac Automator

We are currently delving, as a studio, into any automation tasks that can speed up our workflow and make our life less boring. The first step of this was to create a way to speedily open up three webpages that I use to create and send invoices to our clients with. To do this I used Automator which comes as standard with Mac OS and a bit of applescript. The steps I took are outlined below.

1. Open up automator and make a new Workflow document

Screen Shot 2016-01-06 at 12.41.19

2. Add the “get specified URL’s” task to the workflow and enter in the three urls you want to open. They will be passed onto the next task as a list.

Screen Shot 2016-01-06 at 12.42.51

3. Add the “Run Applescript” task to the workflow and enter in the correct applescript to loop through the list of url’s (passed to the task as the input variable) and tell Google Chrome to open the location.

# input is the list of url's from the previous task
on run {input, parameters}
	# The below is an applescript loop
	repeat with theURL in input
		tell application "Google Chrome" to open location theURL
	end repeat
	# We must return something so we just return the input
	return input

end run

Screen Shot 2016-01-06 at 12.43.15

4. Save and run the automator workflow.

This is a relatively simple task but important for us to begin automating some of the more dreary tasks we have to complete in the studio.

One thought on “Open a list of URL’s in Google Chrome using Mac Automator”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s