[squeak-dev] OSProcess and multiline input
Sean P. DeNigris
sean at clipperadams.com
Fri Feb 24 21:53:17 UTC 2012
I'm trying to pass a multiline argument, but none of the things that work in
the shell seem to work with OSP.
I passed both of the following to PipeableOSProcess>>waitForCommand: with a
"No such file or directory" error, which usually means that the multiline
part was not processed correctly. However, if I copy/paste them into the
shell, they work fine
heredoc:
'/usr/bin/osascript -ss <<-EOF
tell application "Safari" to activate
tell application "Terminal" to activate
EOF'
double-quoted string:
'/usr/bin/osascript -ss -e "
tell application \"Safari\" to activate
tell application \"Terminal\" to activate"'
Why are these not working?
Thanks.
Sean
--
View this message in context: http://forum.world.st/OSProcess-and-multiline-input-tp4418726p4418726.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.
More information about the Squeak-dev
mailing list
|