Just curious if anyone can help me out. I'm currently using the following to open a new window safari, and later close it.
- Code: Select all
set pagURL to "http://worldnow.9and10news.com/Schools/"
tell application "Safari" to activate
tell application "System Events"
tell process "Safari"
click menu item "New Window" of menu "File" of menu bar 1
end tell
end tell
The problem I've run into, is that if I've got safari open in fullscreen mode on another desktop or space, this will not function as I would like it to.
Does anyone know if I can span two desktops or spaces with safari and how I would specify opening a new safari window on a specific desktop or space utilizing applescript?