• 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
Moving Terminal.app windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Moving Terminal.app windows


  • Subject: Moving Terminal.app windows
  • From: Doug McNutt <email@hidden>
  • Date: Wed, 2 Feb 2005 11:13:45 -0700

My G4 running 10.3.7 has four monitors in an inverted T configuration with the main monitor being in the center with a little 640x480 centered above it.

I quite sure Terminal.app has a problem with that, but the bug may be more significant and I would like some results from other machines before I file a report.

The bit of drivel below opens a new Terminal window and places it on my upper monitor. I got the coordinates I used by guesswork and I certainly do not understand them but it does move the new window to the center of that top monitor. ( I cannot drag it above the menu bar with the mouse.)

My problems is that when I ask where the window is I get a different answer than what I asked for.  How did -400 change to -688? The whole monitor is only 480 pixels high.  What's worse is that when I try to move a window entirely on the main monitor I get the same kind of conflict. The "origin", "position", "bounds", and "size" properties of windows seem to make no sense at all. It's not even clear if  "up" is positive (math) or negative (QuickDraw).

Is the entire problem just that my gWorld region is so special? Or is Terminal.app broken for everyone?


set wname to "TestMotion"
tell application "Terminal"
   do script ";" -- Create a window in the front
   set title displays shell path of front window to false
   set title displays custom title of front window to true
   set custom title of front window to wname
   set ipos to position of window wname
   set position of window wname to {200, -400}  -- <-- change this
   ipos & position of window wname
end tell
-->  {248, 133, 200, -688}

What positioning commands should one use to place the window at the left side and just under the menu bar with a short height and a width just wide enough to display progress as written to stderr by curl?

--
--> Marriage and kilo are troubled words. Turmoil results when centuries-old usage is altered in specialized jargon <--.
 _______________________________________________
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

  • Follow-Ups:
    • Re: Moving Terminal.app windows
      • From: Martin Orpen <email@hidden>
  • Prev by Date: Re: QuarkXPress Scripting Question
  • Next by Date: Re: scripting header/footer in appleworks 6
  • Previous by thread: Re: scripting header/footer in appleworks 6
  • Next by thread: Re: Moving Terminal.app windows
  • Index(es):
    • Date
    • Thread