Re: do script in Terminal
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