Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 21, 2007, 03:50 AM   #1
gfroyle
macrumors member
 
Join Date: Feb 2004
How to get and set EXACT window size?

I am writing some training materials that include lots of screenshots.

On Windows (shudder) I use this incredibly handy little freeware tool called "Sizer" which allows me to simply snap the size of any window to an EXACT size - say 800 x 600 - so that every screen shot I take has the exact same size and the whole effect looks more consistent and professional. It takes me less than a second to set up again for a new session of writing/recording at exactly the same size as the previous session..

But I can't find anything similar for Mac OS - in fact I can't even find out how to FIND OUT the size of a window, let alone SET it to something... There are a couple of "screen rulers" out there, but surely there is some easy way of getting a window to report its size?

Thanks

Gordon
gfroyle is offline   0 Reply With Quote
Old Sep 21, 2007, 04:50 AM   #2
Habakuk
macrumors 6502a
 
Join Date: Jul 2007
Location: Vienna Austria Europe
For Safari type or copy the code in it's address field then press the return key:

1024x800
Code:
javascript:self.resizeTo(1024,800)
Sometimes (mostly esp. with blank pages) it works, sometimes not. You can create shortcuts for it and save them as bookmarks. Other scripts:

800x(max)
Code:
javascript:self.resizeTo(800,screen.availHeight)
Full screen
Code:
javascript:self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);
800x600
Code:
javascript:self.resizeTo(800,600)
__________________
Hurry up! Selected & time-limited iOS App Store FREEbies and sales
(German-language blog; but you'll find all links, pics and videos)

Last edited by Habakuk; Sep 21, 2007 at 04:57 AM.
Habakuk is offline   0 Reply With Quote
Old Sep 21, 2007, 11:37 PM   #3
gfroyle
Thread Starter
macrumors member
 
Join Date: Feb 2004
Quote:
Originally Posted by Habakuk View Post
For Safari type or copy the code in it's address field then press the return key:

1024x800
Code:
javascript:self.resizeTo(1024,800)

Wow.. thanks a lot - I am working with Firefox and it works beautifully..

Cheers

Gordon
gfroyle is offline   0 Reply With Quote
Old Sep 21, 2007, 11:39 PM   #4
highres
macrumors 6502a
 
highres's Avatar
 
Join Date: Jul 2005
Location: Near the Singularity...
Quote:
Originally Posted by Habakuk View Post
For Safari type or copy the code in it's address field then press the return key:

1024x800
Code:
javascript:self.resizeTo(1024,800)
Sometimes (mostly esp. with blank pages) it works, sometimes not. You can create shortcuts for it and save them as bookmarks. Other scripts:

800x(max)
Code:
javascript:self.resizeTo(800,screen.availHeight)
Full screen
Code:
javascript:self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);
800x600
Code:
javascript:self.resizeTo(800,600)
nice trick...will add that to my bag of shortcuts...
__________________
None are more hopelessly enslaved
than those who falsely believe they are free.

-Johann Wolfgang Van Goethe-
1749-1832
highres is offline   0 Reply With Quote
Old Sep 21, 2007, 11:42 PM   #5
JBat
macrumors regular
 
Join Date: Apr 2007
Location: Washington
Quote:
Originally Posted by Habakuk View Post
For Safari type or copy the code in it's address field then press the return key:

1024x800
Code:
javascript:self.resizeTo(1024,800)
Sometimes (mostly esp. with blank pages) it works, sometimes not. You can create shortcuts for it and save them as bookmarks. Other scripts:

800x(max)
Code:
javascript:self.resizeTo(800,screen.availHeight)
Full screen
Code:
javascript:self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);
800x600
Code:
javascript:self.resizeTo(800,600)
Wow. That's really cool. Thanks for the info.
__________________
John
mid-2012 13" MBA
JBat is offline   0 Reply With Quote
Old Sep 21, 2007, 11:56 PM   #6
Pants Dragon
macrumors regular
 
Join Date: Nov 2006
Just so you know, I have my computer set to not allow sites to resize my window. It's annoying and pointless. Just show the image in the current window's size.
Pants Dragon is offline   0 Reply With Quote
Old Sep 22, 2007, 12:05 AM   #7
gfroyle
Thread Starter
macrumors member
 
Join Date: Feb 2004
Quote:
Originally Posted by Pants Dragon View Post
Just so you know, I have my computer set to not allow sites to resize my window. It's annoying and pointless. Just show the image in the current window's size.
I'm not trying to resize anyone else's window.. I'm trying to resize my OWN windows, so that the screenshots that I take are all consistently and identically sized...

What Habakuk told us is that you can size your OWN Safari/Firefox window to the exact size you want by typing the javascript into the address bar..
gfroyle is offline   0 Reply With Quote
Old Sep 22, 2007, 02:09 PM   #8
Pants Dragon
macrumors regular
 
Join Date: Nov 2006
Oh, heh, well then. Silly me.
Pants Dragon is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Crop Images to Exact Size? That-Guy iPad Apps 5 Jan 26, 2014 05:14 AM
iStat Menus - Set fan rule by exact number opinio Mac Applications and Mac App Store 0 Sep 2, 2013 05:47 AM
Keep a new Finder window the same size? Imola Ghost OS X 10.8 Mountain Lion 0 May 20, 2013 11:24 PM
Finder window size JoeSay Mac Basics and Help 2 May 2, 2013 09:45 PM
Folder size at bottom of each window? jgw1283 OS X 10.8 Mountain Lion 2 Aug 30, 2012 04:14 AM

Forum Jump

All times are GMT -5. The time now is 03:49 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC