How to use applescript to hit enter on system printing dialog box?
set i to 1tell application "Google Chrome" activate tell window 1 repeat with t in tabs --if title of t starts with "Example" then if {"http://example.com/", "http://aa.com/"} does not contain URL of t then set active tab index to i tell t to print delay 1 tell application "System Events" click button "Print" of window 1 of process "Chrome" --keystroke return end tell end if set i to i + 1 end repeat end tellend tell