tell application "Terminal" to activate
tell application "Terminal"
do script curl "http://192.168.8.185/relay/0?turn=off"
end tell
It doesn't work, if I run:
tell application "Terminal" to activate
tell application "Terminal"
do script "curl" & "http://192.168.8.185/relay/0?turn=on"
end tell
Then the terminal opens and runs: curlhttp://192.168.8.185/relay/0?turn=on
The problem is I need the double quotes to "..." to run the http command in terminal, but when I add the quotes to this script I can't compile it.
For example, something like this won't compile:
tell application "Terminal" to activate
tell application "Terminal"
do script "curl "http://192.168.8.185/relay/0?turn=on"" in window 1
do script "EXIT" in window 1
delay 0.2
tell application "Terminal" to quit
end tell
Appreciate the help. Thanks
--
Contact support anytime: sup...@figure53.com
Follow QLab on Twitter: https://twitter.com/QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/f4094187-c9d0-4406-915d-bcca538393adn%40googlegroups.com.