Applescript "write" verb shouldn't append newline
Currently, the implementation of the Applescript write
verb appends a newline when the argument is direct text. There are times when I might not want a newline. In order to prevent breaking existing scripts, it probably makes sense to add a new optional argument to write
: something like "without newline"? So a script might look like:
tell a_session to write text "some text" without newline
The implementation of write
is in the function handleWriteScriptCommand
inside sources/PTYSession+Scripting.m
.
- iTerm v 2.1.1
- Mac OS X 10.9.5
- com.googlecode.iterm2.plist