Is curl installed on Lion by default?
HI
I am having a real job trying to get cURL to work in an apple script in Lion. A number of people have posted an Apple script so you can dial numbers throughyour phone extention on a Snom phone. Where as it worked onLeopard it now wont work on Lion and I cant work out why. The only thing I can think of is that cURL isnot installed by default can any one help?
The section of code I know NOT be working (I'v tested the rest). Its part of a perform action . The expression
set errorCode to do shell script "curl \"" & theURL & "\"" seems to do nothing.
set theURL to "http://" & mySnomLogin & ":" & mySnomPassword & "@"
set theURL to theURL & mySnomPhoneAddress & "/command.htm?number=" & cleanedNumber
-- Use curl to hit the URL and dial the number
set errorCode to do shell script "curl \"" & theURL & "\""
beep
display dialog "Info: Dialing " & numToDial buttons {"OK"}
--If there was an error, return a message.
if (characters 1 thru 3 of errorCode) as string is not equal to "000" then
display dialog "Error: " & errorCode buttons {"OK"}
end if
Thanks D