Making Safari Windows Open Where I Want Them To - ehMac.ca
Facebook
Twitter
YouTube
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old Sep 1st, 2005, 07:02 PM   #1
Honourable Citizen?
 
GratuitousApplesauce's Avatar
 
Join Date: Jan 2004
Location: Isle in the Salish Sea
Posts: 4,853
Making Safari Windows Open Where I Want Them To

I'm trying to figure this out with no success. Here's the problem. I want a new window, to open directly on top of the already open window, at the same size, when I right-click (control click) and get "Open link in a new window". It has been doing that for some time now, but inexplicably stopped doing it and now opens the new window 1/4 inch down and to the right. The reason I want it this way is that I like to keep a small amount of desk top space visible at the bottom of the screen, while having the browser window fill all the other space. If I want to change windows I use expose. If I'm opening several web pages on the same topic I use tabs, but sometimes I want separate windows. I often have at least a few Safari windows going at one time, sometimes a dozen or so.

Searching ehMac for an answer netted me this thread, where ehMac member Orion explains, in response to a slightly different question:
Quote:
Originally Posted by Orion
However, all programs should remember where they last opened a window. Sometimes you have to do this several times in a row (the Finder, for example) and sometimes you have to actually quit the program with the windows in the desired place (rather than just closing the window itself).

Basically you have to train the program. Annoying at first but usually once it's done you should work. --> This is not true of every program (poor programming or possibly something else?).
So I tried quitting Safari, with the window where I wanted it, and tried different combinations of maximizing the window in different positions and closing and opening windows, nothing seemed to work.

So does anyone know why it was working before and not now, or what I might do to get the desired result? There should be a setting for this. It shouldn't be just a random action by Safari. This is annoying.

I'm using Safari with Panther 10.3.7. Thanks in advance for any illumination on this.
GratuitousApplesauce is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old Sep 1st, 2005, 07:07 PM   #2
Resident Curmudgeon
 
SINC's Avatar
 
Join Date: Feb 2001
Location: Central Alberta
Posts: 68,395
Send a message via AIM to SINC
Maybe I am missing something here, but I simply click on "file" in the menu, and select "new window".

Am I doing something wrong as this seems to work without fail every time?
__________________
Visit my website:
St. Albert's Place On The Web
(Over 1.6 million folks have.)
SINC is offline   Reply With Quote
Old Sep 1st, 2005, 07:18 PM   #3
Honourable Citizen?
 
GratuitousApplesauce's Avatar
 
Join Date: Jan 2004
Location: Isle in the Salish Sea
Posts: 4,853
The attachment shows what I get when I right-clicked (or control-clicked) on "New Reply" and selected "Open link in new window" from the dropdown menu.

If I simply make a new window from "File" --> "New Window", it drops the new window down also.
Attached Images
File Type: jpg Picture 1.jpg (22.4 KB, 48 views)
GratuitousApplesauce is offline   Reply With Quote
Old Sep 1st, 2005, 08:19 PM   #4
Honourable Citizen
 
CubaMark's Avatar
 
Join Date: Feb 2001
Location: Zacatecas, México
Posts: 11,516
Send a message via AIM to CubaMark
This is more of an art than a science.

Try opening a new window on top of an existing one. Resize it and position accordingly. Close the window. Open a new window. How close is it?

Of course, this is entirely avoidable by just using Tabbed browsing, but if you're used to using Exposé, that's not exactly a solution (for me, Tabbed Browsing revolutionized the way I surf).

M.
__________________
Why does the U.S.A. allow some terrorists to walk free in Miami, while imprisoning anti-terrorist fighters? (Washington Post)
The Cuban Revolution as Socialist Human Development Brill Books (Amazon Paperback)
CubaMark is offline   Reply With Quote
Old Sep 1st, 2005, 08:53 PM   #5
Full Citizen
 
Join Date: Apr 2004
Location: Port Coquitlam, B.C.
Posts: 619
Hi GratuitousApplesauce.

The answer I provided in the other thread unfortunately only works with the primary window, in my experience. So for the first Safari window (such as the one created when you launch the program) that will work. Safari and most other applications will create new windows offset from the original. I can only assume that it is designed to guarantee that you can see that there is a new window.

You could try an applescript to open a new window. I know there is a way to have a script run automatically to push / resize the window as desired, but I don't know the details.

If the Safari window is expanded all the way to the bottom of the screen then the only offset would be to the right of the original window, but that doesn't really answer your question ^_^;
Orion is offline   Reply With Quote
Old Sep 1st, 2005, 09:32 PM   #6
krs
Honourable Citizen
 
krs's Avatar
 
Join Date: Mar 2005
Location: Ontario and Quebec
Posts: 8,377
My guess is that this offset is design intent.
Firefox does the same thing; so does Microsoft Outlook Express if you open a set of emails.
krs is offline   Reply With Quote
Old Sep 1st, 2005, 09:40 PM   #7
Honourable Citizen?
 
GratuitousApplesauce's Avatar
 
Join Date: Jan 2004
Location: Isle in the Salish Sea
Posts: 4,853
Quote:
Originally Posted by CubaMark
This is more of an art than a science.
Yeah, no kidding. Am I just being picky, thinking that Safari and the Finder should act in a predictable way?? Or that I should be able to get them to do what I want?
Quote:
Originally Posted by CubaMark
Try opening a new window on top of an existing one. Resize it and position accordingly. Close the window. Open a new window. How close is it?
That didn't help. I tried closing and opening windows, maximizing and minimizing windows, quitting Safari with the windows in the position that I wanted and it still insisted on opening a new window offset below the old one. I even tried logging out and back on.
Quote:
Originally Posted by Orion
The answer I provided in the other thread unfortunately only works with the primary window, in my experience. So for the first Safari window (such as the one created when you launch the program) that will work. Safari and most other applications will create new windows offset from the original. I can only assume that it is designed to guarantee that you can see that there is a new window.
The weird thing is that for quite a long time at least, I think since I had first installed Panther, the new Safari windows were opening like I wanted them too, not offset, now, for some reason, they're not. Maybe this activity was the mistake and now it's just corrected to the normal default mode.
Quote:
Originally Posted by CubaMark
Of course, this is entirely avoidable by just using Tabbed browsing, but if you're used to using Exposé, that's not exactly a solution (for me, Tabbed Browsing revolutionized the way I surf).
I use tabbed browsing too, I just don't like to get too many tabs going on one window. Usually when I'm going into different subjects or areas, I'll open a new window.

Anyway, many thanks for trying to help, folks. Anyone else know anything about this?
GratuitousApplesauce is offline   Reply With Quote
Old Sep 1st, 2005, 09:53 PM   #8
Full Citizen
 
Join Date: Apr 2004
Location: Port Coquitlam, B.C.
Posts: 619
Here are two ways of doing what you may wish to achieve:

Applescript:
Create the following script, save it as a program, and drag the alias to the dock. Any time you want a new Safari window this will create it and move it to where it you want it.

Code:
tell application "Safari"
	activate
	make new document
	set bounds of window 1 to {0, 0, 700, 700}
end tell
There is also a Javascript method. This assumes that you will open a homepage of some kind when you open a new window. Create a new page called, well, whatever you want really. "OpenThisFirst.html" works:

Code:
<!DOCTYPE HTML PUBLIC "- W3C DTD HTML 4.0 Transitional EN">
<html> <head> <title> Open page with a set size </title>

<SCRIPT LANGUAGE="JavaScript"> <!-- Hide from non-Java browsers
javascript: resizeTo(700,700);moveTo(0,0)
--> </SCRIPT>

<meta http-equiv="refresh" content="1; URL=index.html">
</head>
<body> . </body> </html>
With that page created you can change the "resizeTo(700,700);moveTo(0,0)" to whatever size you want (640,480 or 1024,768 or whatever you want). Change the "URL=index.html" to point to the URL of whatever homepage you want to open.

The applescript is easy and works although clunky. It works whenever you want it to. The JavaScript one only works on new pages but it is a little more elegant.

At this point, neither will open a new page that has been called from another application such as Mail.

Last edited by Orion; Sep 1st, 2005 at 10:05 PM. Reason: fixed a dumb coding error
Orion is offline   Reply With Quote
Old Sep 1st, 2005, 11:22 PM   #9
Honourable Citizen?
 
GratuitousApplesauce's Avatar
 
Join Date: Jan 2004
Location: Isle in the Salish Sea
Posts: 4,853
Orion, thanks for the options. I have tried some javascript things to create different page sizes. I have one in my bookmarks bar that maxes out the page, if I get to a web page that is small.

This is what I have as the address of an item called "max" in my bookmarks bar: javascript:self.moveTo(0,0);self.resizeTo(screen.a vailWidth,screen.availHeight);

I would rather that Safari just did what it used to do, automatically, rather than having to implement an Applescript or a javascript.

What I'm now wondering is, if offsetting a new window is the standard behaviour, why was Safari not doing that for me for such a long time? I actually liked that non-standard behaviour.
GratuitousApplesauce is offline   Reply With Quote
Old Sep 2nd, 2005, 12:13 AM   #10
Full Citizen
 
Join Date: Apr 2004
Location: Port Coquitlam, B.C.
Posts: 619
Thinking back, some time about 10.3.7 I remember Safari doing the same thing. If you're right and it was a bug, it is something that should be implemented as an option.
Orion is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why don't embedded .wmv files play in Safari? miguelsanchez Mac, iPhone, iPad and iPod Help & Troubleshooting 1 Nov 4th, 2005 01:34 PM
My Accountant can't open my Virtual PC Quickbooks backup Performa Mac, iPhone, iPad and iPod Help & Troubleshooting 5 Oct 19th, 2005 10:59 PM
Safari vs. web counter Stephanie Mac, iPhone, iPad and iPod Help & Troubleshooting 1 Mar 30th, 2005 04:19 PM
Adding Helper Applications to Safari or IE james_squared Mac, iPhone, iPad and iPod Help & Troubleshooting 5 Nov 28th, 2004 10:31 PM
Features i'd like to see in Safari PosterBoy Anything Mac 20 Jan 17th, 2003 01:05 PM


All times are GMT -4. The time now is 12:49 AM.



Copyright © 1999 - 2012, ehMac.ca All rights reserved. ehMac is not affiliated with Apple Inc. Mac, iPod, iTunes, iPhone, Apple TV are trademarks of Apple Inc. Content Relevant URLs by vBSEO 3.6.0 RC 2

Tribe.ca: Urban living in Toronto!