• 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: Print text to Terminal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Print text to Terminal (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: Image Capture Scripting dictionary is missing in Tiger
  • Next by Date: Waiting for modal dialog box to clear
  • Previous by thread: Re: Print text to Terminal
  • Next by thread: Re: Print text to Terminal
  • Index(es):
    • Date
    • Thread