• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: resize IE window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: resize IE window


  • Subject: Re: resize IE window
  • From: Rob Jorgensen <email@hidden>
  • Date: Wed, 24 Apr 2002 11:05:18 -0400

On 4/24/02, Matt Binkowski commented:

hi all,

i'd like to write a script that, when run from the script menu in X, can
resize the window size of the front window of internet explorer to 640 x
480. any ideas?

I'm not a JavaScript expert, but I use this (poached) script to open a window to full screen. If you aren't opposed to JavaScript, maybe you can modify it to suit your needs. (OS 9.1/IE 5.1)

tell application "Internet Explorer"
do script "javascript:window.moveTo(0,0);window.resizeTo((screen.width/1),(screen.height/1))"
end tell

FYI, I've pasted the JavaScript into the URL slot of the home page in IE's prefs (Browser Display>Home Page). Here's what you need to put in there:

javascript:window.moveTo(0,0);window.resizeTo((screen.width/1),(screen.height/1))

I also have the "Automatically go to this Home Page when opening a new window" selected. With this arrangement, new windows are opened to full screen.

'Nuther FYI. You can create a bookmark using the above JavaScript as the URL. Put the bookmark in the IE toolbar and it'll resize the front window with one click, or, if you use the "Home" tip above, press the home button.

Yet another FYI. In IE 5.1/OS 9.1, you can drag the icon of an AppleScript script to the toolbar to create a shortcut to the script (only works with scripts saved as applications I believe). This acts as a once-click script launcher of sorts, allowing one to launch scripts without leaving IE. :-)

--
Best regards,

Rob Jorgensen
Ohio, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: resize IE window
      • From: Matt Binkowski <email@hidden>
References: 
 >resize IE window (From: Matt Binkowski <email@hidden>)

  • Prev by Date: Re: Applescript file extensions
  • Next by Date: Re: resize IE window
  • Previous by thread: resize IE window
  • Next by thread: Re: resize IE window
  • Index(es):
    • Date
    • Thread