Re: Tell application variable for remote service
Re: Tell application variable for remote service
- Subject: Re: Tell application variable for remote service
- From: Jeff Jungblut <email@hidden>
- Date: Thu, 20 May 2010 11:29:57 -0700
- Thread-topic: Tell application variable for remote service
Title: Re: Tell application variable for remote service
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