Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > A script to stop cascading in Safari (10.3)

A script to stop cascading in Safari (10.3)
Thread Tools
Fresh-Faced Recruit
Join Date: Dec 2001
Location: Montreal
Status: Offline
Oct 23, 2003, 07:14 PM
 
How can i stop Safari from cascading the new pages ? I would like them to open at 0,0. There must be a script somewhere for that. I'm in 10.3 now. Thanks !
     
Fresh-Faced Recruit
Join Date: Apr 2003
Status: Offline
Oct 23, 2003, 07:44 PM
 
I would like the same thing in Terminal
and misc. other applications. Is there a
global system wide setting that forces
new windows in any app to open at 0,0 ?
     
Junior Member
Join Date: Feb 2003
Status: Offline
Oct 23, 2003, 08:16 PM
 
Soon after Safari beta came out an application enhancer called FullScreenSafari made for Unsanity's APE Manager came out that keeps Safari's pages from cascading. I've used it since.

I was wondering if it would or need to be updated for Panther so I tried to locate the author/source. I don't know what happened to it and I can't find anything on the internet about it (version tracker, macupdate, google). I even wrote support at Unsanity and they didn't know anything about it.

I wish there was a way to keep other apps from cascading also. Since I always use command-~ to switch between windows, I don't really have a use for cascading. Sometimes it just makes things look really cluttered.

If anyone knows anything about FullScreenSafari, please let me know. I would be interested to know how easy it would be to alter the program to make it work for other apps.
     
Fresh-Faced Recruit
Join Date: Dec 2001
Location: Montreal
Status: Offline
Oct 24, 2003, 04:49 AM
 
Yes, that's what i was looking for ! I found it in my Home/Application Enhancers folder.
I have version 0.0.1d1. It was working perfectly in 10.2, but not in 10.3.
Here is a link for FullScreenSafari.ape
http://www.atmasphere.net/mt/archives/002593.html

Does anybody know where i can find a way to stop the cascading pages in Sarari ?
     
Mac Elite
Join Date: May 2002
Status: Offline
Oct 24, 2003, 04:53 AM
 
I'm the author, and I'm happy to give the source to anyone interested in it. It shouldn't need to be updated for Panther - but APE itself does. It would indeed be easy to alter it to work for other applications, too - if I get some time I might do that, and if anyone else wants to, feel free. Here's a simplified version of the source code, free - for clarity - of the macros I use to write APE modules.

Code:
#include <ApplicationEnhancer/ApplicationEnhancer.h> #include <objc/objc-class.h> #import <Cocoa/Cocoa.h> char shouldCascadeWindows(void *inst, char *sel); void APEBundleMain(CFBundleRef bundle) { struct objc_method *method; struct objc_class *class; class = objc_getClass("BrowserWindowController"); method = class_getInstanceMethod(class, NSSelectorFromString(@"shouldCascadeWindows")); APEPatchCreate(method->method_imp, &shouldCascadeWindows); } char shouldCascadeWindows(void *inst, char *sel) { return NO; }
(Last edited by Gul Banana; Oct 24, 2003 at 05:30 AM. )
[vash:~] banana% killall killall
Terminated
     
Fresh-Faced Recruit
Join Date: Dec 2001
Location: Montreal
Status: Offline
Oct 24, 2003, 05:03 AM
 
Hi ! It would be great if you post a link to a new version (version tracker). I'm not a programmer, so i wouldn't know what to do with the source.
The cascading pages in Safari is very annoying and your app was fantastic in 10.2
     
Admin Emeritus
Join Date: Oct 1999
Location: Zurich, Switzerland
Status: Offline
Oct 24, 2003, 07:58 AM
 
This thread belongs in Applications, as the forum descriptions make abundantly clear.

tooki
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 05:56 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2