Dear all,
I am trying to do shut down from within my application. I am using the following code to do so:
Qt Code:
QProcess fQuitter QStringList arguments; arguments << "-e" << "'tell application \"Finder\" to shut down'"; fQuitter.start(program, arguments); fQuitter.waitForFinished();To copy to clipboard, switch view to plain text mode
readAllStandardError() returns this:
0:1: syntax error: A unknown token can’t go here. (-2740)
If I copy&paste the same strings into the terminal it works.
Any suggestions?
Markus
Bookmarks