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
White 24" iMac 2.33GHz C2D, 2GB RAM 500GB HDD
2012 13" Macbook Air 2.0GHz Core i7 Dual-Core, 8GB RAM, 256GB Flash Drive
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

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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Tutorial: How to get PCSX2 to run on Mac (without BootCamp) Mirrors Mac Applications and Mac App Store 22 Jun 14, 2013 08:19 PM
IPHONE 4 how to JAILBREAK AND UNLOCK bs2511feist Jailbreaks and iOS Hacks 6 Apr 14, 2012 05:52 PM
Does anybody know how to get TweetTask? xmelissaxmayhem Jailbreaks and iOS Hacks 3 Jul 3, 2011 01:21 AM
how to get firewall setting in mac os from an application? Daeyong Mac Programming 0 Feb 21, 2009 08:41 PM
how to get and set the value in edit text box control? chidambaram Mac Programming 2 Apr 8, 2008 05:45 AM


All times are GMT -5. The time now is 08:41 AM.

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

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