 |
 |
A script to stop cascading in Safari (10.3)
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Dec 2001
Location: Montreal
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
This thread belongs in Applications, as the forum descriptions make abundantly clear.
tooki
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|