This works in a browser
- Code: Select all
http://www.mywebsite.com/input.php?data1=text&data2=text&data3=text
This doesn't work in an applscript
- Code: Select all
tell application "Terminal"
if (count of windows) is 0 then
do shell script "/usr/bin/curl -d 'data1=text&data2=text&data3=text' http://www.mywebsite.com/input.php "
else
activate
do shell script "/usr/bin/curl -d 'data1=text&data2=text&data3=text' http://www.mywebsite.com/input.php " in window 1
end if
end tell