Hi, im fairly new to applescript. I want to make a script that will open two Safari windows side by side(tiled) with one window on google.com and another on yahoo.com
So ive been googling various solutions and mixing up different codes to find out a solution. At this point im getting an error with running this applescript, can anyone tell me why?
Thanks in advance
So ive been googling various solutions and mixing up different codes to find out a solution. At this point im getting an error with running this applescript, can anyone tell me why?
Thanks in advance
Code:
application "Safari"
activate
do JavaScript "window.open('http://www.yahoo.com')" in document 1
set bounds of window 1 to {160, 80, 980, 700}
tell application "System Events"
tell process "Safari"
click menu item "New Window" of menu "File" of menu bar 1
set bounds of window 2 to {160, 80, 980, 700}
end tell
end tell
end tell