How to make applescript type items into url bar

applescript

How do i make applescript type certain things such as urls into the url bar?
I've been trying to set up my computers so I don't take 9 years to set everything up when I need to work.
I have most of it ready but I can't figure this part out…
Can someone help me?

Best Answer

This works with following AppleScript lines:

tell application "Safari"
open location "https://google.ch"
activate
end tell