• 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 20:58:56 +0100

on Wed, 22 Oct 2003 08:13:03 -0400, Mathew Hoy wrote:

> i'm trying to write a script that opens terminal, starts script "top" and then
> minimizes the window.
>
> so far:
>
> tell app "terminal"
> activate
> do shell script "top"
> end tell
>
> i've been trying ways to minimize the window all morning. anyone have any
> suggestions? ugh. i'm too new to applescript to "get it" this early in the
> morning.

Try:

tell application "System Events"
tell process "Terminal"
click button 3 of window 1
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.

  • Follow-Ups:
    • Re: minimize the terminal.
      • From: Stephen Jonke <email@hidden>
  • Prev by Date: Quark 5.01 scripting syntax
  • Next by Date: Need to script tracking in multiple Quark files
  • Previous by thread: Re: Quark 5.01 scripting syntax
  • Next by thread: Re: minimize the terminal.
  • Index(es):
    • Date
    • Thread