Re: Print text to Terminal
Re: Print text to Terminal
- Subject: Re: Print text to Terminal
- From: Joshua See <email@hidden>
- Date: Wed, 18 May 2005 08:44:56 -0500
On May 17, 2005, at 7:14 PM, Gnarlodious wrote:
I want to send some text to Terminal, just for information's sake. How
would
I do that?
The closest I can get is the "echo" command, but then I get a command
AND
the text:
tell application "Terminal" to do script "echo 'I want to suppress this
command and only see the text...' " in front window
Is there a way to only print text to Terminal?
Remember the REM statement?
tell application "Terminal"
do script "true - I bet you didnt know that commands like true would
take" in window 1
say "[[slnc 250]]"
do script "true - arguments silently without dumping them to the
standard" in window 1
say "[[slnc 250]]"
do script "true - out. Even line after line of them." in window 1
end tell
The say commands provide a delay to prevent the local echo problem that
occurs when you throw too much at the Terminal too fast. Some of the
lines might wrap for people who have longer short usernames. I came up
with this for saved UNIX commands tasks in Apple Remote Desktop. Saved
tasks aren't shell scripts and thus don't honor #."
--
Sincerely,
Joshua See
_______________________________________________
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