Currency exchange script

Can anyone point me to a script for fetching currency exchange rates from the internet, that will run with Panther?

Thanks,
Jon

Hi,

I found this soap applescript on the internet:

set cntry1 to “united states”
set cntry2 to “united states”
set countryList to {“euro”, “united kingdom”, “japan”, “australia”, “switzerland”, “canada”}

try
with timeout of 20 seconds
repeat with cntry2 in countryList
tell application “http://services.xmethods.net:9090/soap
set theResult to call soap {method name:“getRate”, parameters:{country1:cntry1, country2:cntry2}, method namespace uri:“urn:xmethods-CurrencyExchange”}
end tell
say "exchange rate with " & cntry2 & " is " & theResult as string
end repeat
end timeout
on error
say “error or no response from exchange rate server.”
end try

at:

http://www.ma.utexas.edu/users/katerman/c/applescript/requests/currency%20exchange%20rate

EDIT: you can get a list of countries here:

http://xmethods.net/ve2/ViewListing.po;jsessionid=kxjUKr2abFgnr1zg-8HQHfvT(QHyMHiRM)?key=uuid:D784C184-99B2-DA25-ED45-3665D11A12E5

gl,

Thanks Kel - that works.

Now I need to figure out how to have the results pasted into corresponding fields in my filemaker database, instead of spoken. I think I’ll have to learn a bit more about what I’m doing first!

Cheers,
Jon

Afraid not. I’m a novice at mac-scripting, and I haven’t had the time to work it out. At the moment I’m just entering them manually, which sort of defeats the purpose. If you figure it out before I do I’d be interested to hear how you do it.