Hello,
Well, both Luther and Jeff solutions are working. Thank you.
I preferred Jeff's one because with Luther's I ended up to double escape a lot of stuff (especially lots of double quotes) making things not so clean in my code.
Regards, Le 20 mai 2010 à 22:29, Jeff Jungblut a écrit :
I think this is what you're looking for. “using terms from” is the important part. Here’s a working sample.
set params to {}
set targetServer to "http://cleverdev.net/xmlrpctest.php"
tell application targetServer
using terms from application "http://localhost"
set theData to call xmlrpc {method name:"rpcTest.getString", parameters:params}
end using terms from
end tell
on 5/20/10 2:39 AM, Stéphane VAXELAIRE at email@hidden wrote:
> Hello everybody,
>
> I'm new to AppleScript and to this list.
>
> I searched the lists (and google of course) about being able to use some
> variable for a :
> tell application "remote_service_url"
> to make an XML RPC call.
> I'd like to be able to write "tell application some_url" in a function where
> some_url would be a function parameter.
> I don't like that URL to be hardcoded in my scripts.
>
> I can't find anything that would let me know it is possible though...
>
> Regards _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> net
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
--
Jeff Jungblut
email@hidden
Senior Graphic Designer & Web Developer
Uptown Publications
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
|