using applications over the web
using applications over the web
- Subject: using applications over the web
- From: Malcolm Fitzgerald <email@hidden>
- Date: Fri, 17 Jan 2003 08:59:09 +1100
I've just d/l a script from <
http://www.designweenie.com> which uses
an odd tell block. It addresses an URL. Needless to say, this isn't
working for me and I'm trying to find out what is going on. Here's
the code, would someone enlighten me?
-----
on google_Search(in_maxResults, in_start, in_filter, in_q,
in_restrict, in_safeSearch)
set in_lr to "" -- language restrict
set in_ie to "latin1" -- input encoding
set in_oe to "latin1" -- output encoding
set in_key to googleKey -- my google key (defined as a script property)
tell application "
http://api.google.com/search/beta2"
set mn to "doGoogleSearch"
set sa to "urn:GoogleSearchAction"
set mns to "urn:GoogleSearch"
set params to {}
set params to {oe:in_oe} & params
set params to {ie:in_ie} & params
set params to {lr:in_lr} & params
set params to {|safeSearch|:in_safeSearch} & params
set params to {restrict:in_restrict} & params
set params to {filter:in_filter} & params
set params to {|maxResults|:in_maxResults} & params
set params to {start:in_start} & params
set params to {q:in_q} & params
set params to {|key|:in_key} & params
return <<event rpc SOAP>> {<<class meth>>:mn, <<class
parm>>:params, <<class sact>>:sa, <<class mspu>>:mns}
end tell
end google_Search
--
--
Malcolm Fitzgerald email@hidden
Database Manager
http://www.asauthors.org
The Australian Society of Authors ph: 02 93180877 fax: 02 93180530
_______________________________________________
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.