I've written scripts which allow me to switch windows between my primary and secondary displays when browsing Safari. I've loaded the two scripts into Quicksilver so that I can trigger them with key commands.
Here is the code for the primary display:
tell application "Safari"
activate
set the bounds of the first window to {0, 0, 1440, 900}
end tell
Here is the code for the secondary display:
tell application "Safari"
activate
set the bounds of the first window to {1442, 0, 2879, 900}
end tell
The problem is once I've switched back and forth a few times the secondary display script seems to take over. I can't even drag any windows into the primary display. Can anyone help me out with this? I'm using OS X 10.4.10 with Safari 2.0.4 on a MacPro.
Here is the code for the primary display:
tell application "Safari"
activate
set the bounds of the first window to {0, 0, 1440, 900}
end tell
Here is the code for the secondary display:
tell application "Safari"
activate
set the bounds of the first window to {1442, 0, 2879, 900}
end tell
The problem is once I've switched back and forth a few times the secondary display script seems to take over. I can't even drag any windows into the primary display. Can anyone help me out with this? I'm using OS X 10.4.10 with Safari 2.0.4 on a MacPro.