Re: minimize the terminal.
Re: minimize the terminal.
- Subject: Re: minimize the terminal.
- From: Dave Stewart <email@hidden>
- Date: Wed, 22 Oct 2003 15:04:27 -0700
Gee, I think I found something I can handle! Hopefully I get it right
...
;-)
(Since I'm on digest mode, I apologize in advance for being the last
one to the table.)
On Wednesday, October 22, 2003, at 11:47 AM, Mathew Hoy pondered:
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
The problem here is contained in one word ... shell. "do shell script"
will run in it's own shell and doesn't even need Terminal running (in
fact, I wouldn't think the "top" command would spit out to the Terminal
from a "do shell script"). The one to use in Terminal is "do script".
(Of course, I'm assuming you knew there was a problem there)
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.
I don't see anything in the dictionary for Terminal that minimizes the
window, although there is a property to tell you if it's already
minimized or not. Unless I missed something, you might need to play
with GUI scripting to do that (if that comment made you scratch your
head for a moment, go check out
<
http://www.apple.com/applescript/GUI/>).
thanks,
-mathew
Dave Stewart
Aqua-flo Supply (Goleta)
email@hidden
Be nice to other people; they outnumber you 5.6 billion to 1
_______________________________________________
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.