Open new safari window on 1st desktop (or 1st space)

Posted on
Mon Feb 11, 2013 8:53 am
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Open new safari window on 1st desktop (or 1st space)

All,
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?

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 24 guests