Currency exchange script

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



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”}

with timeout of 20 seconds
repeat with cntry2 in countryList
tell application “
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


EDIT: you can get a list of countries here:;jsessionid=kxjUKr2abFgnr1zg-8HQHfvT(QHyMHiRM)?key=uuid:D784C184-99B2-DA25-ED45-3665D11A12E5


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!


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.