[futurebasic] Re: [FB] Get Dilbert

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2006 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Sun, 22 Jan 2006 17:44:07 -0500
Alain asked:

>that doesn't seem to work at my side. In Script Editor, I get an error
>message when compiling: access not authorized or something like that.
>What's up?

Alain,

Try this raw AppleScript code in Script Editor. Also, in Xcode 
compile and build:

Developer -> Examples -> AppleScript Studie -> Daily Dilbert

to confirm that your are not having a Franch/U.S. server access issue.

Let us know how it goes.

Ken


set forDate to do shell script "date +%m/%d/%y"
tell application "http://www.esynaps.com/WebServices/DailyDiblert.asmx"
set mname to "DailyDilbertImagePath"
set soapact to "http://tempuri.org/DailyDilbertImagePath"
set namespace to "http://tempuri.org/"
set params to {}
set params to params & {|parameters|:forDate}
set theURL to call soap {method name:mname, parameters:params, 
SOAPAction:soapact, method namespace uri:namespace}
end tell
do shell script ("curl -o /tmp/dilbert.jpg " & theURL)
do shell script ("open /tmp/dilbert*.jpg")