• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tell application variable for remote service
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tell application variable for remote service


  • Subject: Re: Tell application variable for remote service
  • From: Stéphane VAXELAIRE <email@hidden>
  • Date: Fri, 21 May 2010 14:37:18 +0400

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
References: 
 >Re: Tell application variable for remote service (From: Jeff Jungblut <email@hidden>)

  • Prev by Date: Re: Suppressing the error dialog box
  • Next by Date: RE: Getting Error "Microsoft Word got an error. Connection is invalid"
  • Previous by thread: Re: Tell application variable for remote service
  • Next by thread: BBEdit scratchpad?
  • Index(es):
    • Date
    • Thread