So in my little app, there is a text field where the user enters a web page and a button that when clicked calls cURL, gets the html and puts it in a text view. For some reason the cURL wont get through and Im getting a
error.
Heres the code
on clicked theObject
if the name of theObject is "grabButton" then
tell window "main"
set sourcePage to the contents of text field "sourcePage" as string
end tell
do shell script "curl " & quoted form of sourcePage
set theHTMLSource to the result
tell window "main"
set the text of text view "codeView" of scroll view "scrollView" to theHTMLSource
end tell
end if
end clicked