help2: I want the plugin to go through these three steps: First, if there is a cached daily exchange rate, use that to calculate and display output. Second, if not, query google, parse, display output and cache exchange rate. Third, if the google query failed (i.e. offline), see if there's a cached older exchange rate, use that to calculate and display output plus a note that N days old rate was used. Now, how do I best do I best cache the exchange rate through javascript in the plugin?
In the delicious plugin I stored the bookmarks in an xml files.
If you need to read and write text files : search for Scripting.FileSystemObject. It is an activex you can use to read and write files.
If you need to read and write xml files, you can use MSXML.DOMDocument.
help3: I used "ex" as alias only because I couldn't get "$" to work (I wanted "$50 " to run the script for example). Is there some way to use "$" as an alias?
You can try \$ as mouser tell you.
You can also set regexstr and scriptregex to empty, set aliasstr to $, delete the onRegexSearchMatch function and only use the explicit match. You can then use javascript regexes only to match params. Regexes are useful when you need FARR to filter results based on a pattern when you use FARR.emitResult() to report results.
I'm very pleased to see all your work around javascript plugins.