Re: minimize the terminal.
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.