Re: Print text to Terminal
Re: Print text to Terminal
- Subject: Re: Print text to Terminal
- From: kai <email@hidden>
- Date: Wed, 18 May 2005 10:14:41 +0100
On Wednesday, May 18, 2005, at 04:19 am, Gnarlodious wrote:
Entity kai uttered this profundity:
tell application "System Events"
set process "Terminal"'s frontmost to true
keystroke "I want to suppress this command and only see the text..."
end tell
Oops, I spoke too soon. When Terminal receives a return it executes the
string as a command. You can enclose it in single quotes to suppress
the
execution but then the return interprets it as an echo. The end result
is
there's no difference between the above method and using echo.
Yeah. I wasn't sure how you wanted to proceed. That's probably what
Andrew meant - and I was being my usual obtuse self. (Sorry, Andrew.)
Terminal will clearly attempt to execute any uncommented string, so it
looks like you'll have to use something like "#", Console - or, if a
single comment is all you require at any time, Deivy's rather clever
little device... :-)
---
kai
_______________________________________________
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