• 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: minimize the terminal.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: minimize the terminal.


  • Subject: Re: minimize the terminal.
  • From: kai <email@hidden>
  • Date: Wed, 22 Oct 2003 22:43:51 +0100

on Wed, 22 Oct 2003 16:41:24 -0400, Stephen Jonke wrote:

> On Wednesday, October 22, 2003, at 03:58 PM, kai wrote:
>
>>> Try:
>>
>> tell application "System Events"
>> tell process "Terminal"
>> click button 3 of window 1
>> end tell
>> end tell
>
> Note that this will not even compile unless you have GUI scripting beta
> installed. Get it from the following page:
>
> http://www.apple.com/applescript/gui/";>http://www.apple.com/applescript/gui/
>
> Why is minimize = button 3 instead of button 2 anyway? I wish we could
> just say "click minimize button of window 1", but oh well....

This is about as close as I can get to plain English, Steve:

tell application "System Events"
tell process "Terminal"
click (window 1's first button whose subrole contains "Minimize")
end tell
end tell

---
kai
_______________________________________________
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.

  • Prev by Date: Re: Get IP Address
  • Next by Date: Re: minimize the terminal.
  • Previous by thread: Re: minimize the terminal.
  • Next by thread: Re: minimize the terminal.
  • Index(es):
    • Date
    • Thread