Re: Tell application variable for remote service
Re: Tell application variable for remote service
- Subject: Re: Tell application variable for remote service
- From: Axel Luttgens <email@hidden>
- Date: Fri, 21 May 2010 10:35:04 +0200
Le 20 mai 2010 à 17:52:12, Stéphane VAXELAIRE a écrit :
> I have not yet looked at Luther's answer but here is a sample of what I wish I could achieve :
>
> on functionName( url_parameter)
> set parameterStruct to {|name|:fname, type:ftype, bits:fdata, overwrite:true}
> tell application url_parameter
> set val to call xmlrpc {method name:"metaWeblog.newMediaObject", parameters:{vid, vuser, vpass, parameterStruct}}
> return val
> end tell
> end functionName
>
> When I try to execute the script in the script editor I get a syntax error specifying something like "end of line expected but identifier found" (translated from french). And the keyword xmlrpc is highlighted.
>
> If you just replace :
> tell application url_parameter
> with an url value like :
> tell application "http://www.glob.com/xmlrpc.php"
> there is no syntax error and it works fine.
>
> But that prevents me from making a generic script independent from the blog I want to post to.
Hello Stéphane,
Thanks for having taken the time to provide the above concise example and comments. This clearly allowed to circumscribe the problem, and it seems that Jeff immediately came with an efficient and definitive cure as far as the syntactical aspects are concerned. :-)
Best,
Axel
_______________________________________________
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