• 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: Position of window in Terminal...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Position of window in Terminal...


  • Subject: Re: Position of window in Terminal...
  • From: Johnny AppleScript <email@hidden>
  • Date: Mon, 27 Sep 2004 17:16:39 -0600

Title: Re: Position of window in Terminal...
Anything wrong with this alternative? -- JA (who is by no means excusing Terminal's rowdy, nonconformist behavior)

tell application "Terminal"
    
activate
   do script "ls"
    
set z to bounds of window 1
   
set bounds of window 1 to {0, 0, (item 3 of z) - (item 1 of z), (item 4 of z) - (item 2 of z)}
end tell



On 04/09/27 11:07 AM, "David Crowe" <email@hidden> wrote:

> This works for me to position a Terminal window in the top left:
>
> tell application "Terminal"
>    activate
>      do script "ls"
> set bounds of window 1 to {0, 0, (item 3 of bounds of window 1) - (item 1 of
> bounds of window 1), ¬
>          (item 4 of bounds of window 1) - (item 2 of bounds of window 1)}
> end tell
>
>
> Well, it works, but then it generates an error, but the window is positioned
> correctly.
>
> - David Crowe
 _______________________________________________
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: Position of window in Terminal...
      • From: Martin Orpen <email@hidden>
    • Re: Position of window in Terminal...
      • From: Johnny AppleScript <email@hidden>
References: 
 >Position of window in Terminal... (From: David Crowe <email@hidden>)

  • Prev by Date: Re: GUI screen capture?
  • Next by Date: Re: Position of window in Terminal...
  • Previous by thread: Re: Position of window in Terminal...
  • Next by thread: Re: Position of window in Terminal...
  • Index(es):
    • Date
    • Thread