• 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: do script in Terminal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do script in Terminal


  • Subject: Re: do script in Terminal
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 25 Jun 2010 00:23:53 -0400

Since driving a curses-based application seems tantamount to GUI scripting anyway, why not use GUI scripting?  "do script" to start the application, then use system events to send the keypresses.

On Thu, Jun 24, 2010 at 9:53 PM, Paul Scott <email@hidden> wrote:
"do script" in Terminal appears to add a newline at the end of the provided script. This makes it impossible to use "do script" for scripting curses-based applications where each keystroke is significant including newline.

Is there a way to send data *without* a forced newline?

Paul

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden



--
Mark J. Reed <email@hidden>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: do script in Terminal
      • From: Paul Scott <email@hidden>
References: 
 >do script in Terminal (From: Paul Scott <email@hidden>)

  • Prev by Date: Re: Detecting the minus sign in a string
  • Next by Date: Re: do script in Terminal
  • Previous by thread: do script in Terminal
  • Next by thread: Re: do script in Terminal
  • Index(es):
    • Date
    • Thread