I am trying to set the url of Chrome tab using Apple Script. I am using this code. It successfully sets url string, but in order to change url, enter needs to be pressed. This last step makes my code unfunctional, since it doesn't change the current website I am visiting. What workaround do you recommend? Chrome is already open.
tell application "Google Chrome" tell application "System Events" tell application process "Google Chrome" set value of text field 1 of toolbar 1 of window 1 to "http://www.url.com/" end tell end tell end tell