• 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: Paul Scott <email@hidden>
  • Date: Thu, 24 Jun 2010 21:31:18 -0700

I've never attempted sending key presses with system events. I'lll have to try that. Still, it seems like a huge shortcoming of "do script" that it always appends a newline (or return in AppleScript parlance). If it didn't do that, I wouldn't need to play games with system events.

Paul

On Jun 24, 2010, at 9:23 PM, Mark J. Reed wrote:

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

References: 
 >do script in Terminal (From: Paul Scott <email@hidden>)
 >Re: do script in Terminal (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: do script in Terminal
  • Next by Date: Re: *** OUT ***AppleScript-Users Digest, Vol 7, Issue 333
  • Previous by thread: Re: do script in Terminal
  • Next by thread: Re: Terminology Conflict
  • Index(es):
    • Date
    • Thread