Re: ARRRGH! AppleScript hates me
Re: ARRRGH! AppleScript hates me
- Subject: Re: ARRRGH! AppleScript hates me
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 20 Jan 2003 12:05:55 -0800
On 1/20/03 11:01 AM, "Jeff Porten" <email@hidden> wrote:
>
> set aUser to "username"
>
> set aPassword to "userpass"
>
>
>
> tell application
>
> "http://192.168.0.7/landam/webtoolsII/services/wtlogin.asmx"
>
> set the method_parameters to {{sUser:aUser as string,
>
> sPwd:aPassword as
>
> string}}
>
>
Why are you coercing strings into strings? And I'd remove the "the",
>
AppleScript's parser *should* ignore it, but why make it bother?
AppleScript doesn't mind. These are just style recommendations, not ever the
cause of any failures in AppleScript. It may look messy (or not, as you
think) but adding 'the' and providing unnecessary coercions never caused an
AppleScript to fail. That can't possibly be the problem.
When
set the method_parameters to {sUser:aUser, sPwd:aPassword}
compiles, the record labels sUser and sPwd compile as user terms, not as
application keywords. I believe that there's a way around this, which I
believe (if I remember correctly) is that you put them into pipes:
set the method_parameters to {|sUser|:aUser, |sPwd|:aPassword}
But I might not be recalling that correctly. Someone will know.
>
>
Seems to me the problem here is in the variables, not the SOAP call,
>
but I'm... um... unfamiliar with SOAP. Don't quote me on that.
OK.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.