• 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
New Year's gift for Netscape users
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New Year's gift for Netscape users


  • Subject: New Year's gift for Netscape users
  • From: Emile Schwarz <email@hidden>
  • Date: Tue, 04 Jan 2005 11:41:47 +0100

Hi all,


I am a Netscape user since version 2. Sometimes, when I move a window, that window moves by itself far above the MenuBar. Then, that window is no more accessible via standard commands. Here comes AppleScript.



When you can, off-line, use the two next scripts to get the window back to a normal position:



1. How to get the properties of the front window ------------------------------------------------

To know what command I can use, I typed:

tell application "Netscape"
	return properties of front window
end tell

Run this script and get the returned properties from the Result pane:

{«class pObT»:window, «class pTit»:"Yahoo! Groups : xxxyyyzzz - Netscape", «class curl»:"http://groups.yahoo.com/group/xxx/yyy/zzz/";, index:1, bounds:{0, -123, 886, 850}, «class pLcn»:{0, -123}, closeable:true, titled:true, modal:false, resizable:false, zoomable:true, zoomed:true, «class pNMo»:true, «class pMMo»:false, floating:false, visible:true}

The relevant part of the above properties is:
«class pLcn»:{0, -123}

Yes, we could use the bounds properties, but I want to change the window top location, not the window size ;)


2. How to set a new location to the front window ------------------------------------------------

the property to change is «class pLcn» (location or position as you will);
the target window have to be the frontmost, so click in the target window;
I love to see that window at the leftmost position (x) and just below the menubar (y): {0, 44}



tell application "Netscape" set «class pLcn» of front window to {0, 44} end tell


Tested using Mac OS X 10.3.7 on a PowerBook 15" Alu.


HTH,

Emile


PS: copy paste the second script and save it for future use. The first script is here for understandings purposes.



_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Converting binary to decimal
  • Next by Date: Re: Palm Desk Top
  • Previous by thread: Re: Applescript-users Digest, Vol 2, Issue 4
  • Next by thread: Scripting Network Proxy settings
  • Index(es):
    • Date
    • Thread