Open PDFs and Save using Automator

I am new here and am trying to figure out a few things.

I have a droplet with the following code

on open theDroppedItems

repeat with f in theDroppedItems
	tell application "Adobe Illustrator"
		set user interaction level to never interact
		open (f as alias) without dialogs
		close current document saving yes
	end tell
end repeat

end open

I would like to run the java script from automator using the Get Specified Finder Items. The basic I am trying to do is open several pdf’s and save them once their image links are updated.

Thank You in advance