This is a script that searches for the New Zealand postcode using the above link that is created by the Firefox icon on the patient details
try { number = find(/Number: ([\w\s]+)/).groups[1]; }
catch(e) {
number = ''; // a pair of single quotes here
}
try { street = find(/Street: (.*)/).groups[1]; }
catch(e) {
street = '';
}
try { suburb = find(/Suburb: (.*)/).groups[1]; }
catch(e) {
suburb = '';
}
try { city = find(/City: (.*)/).groups[1]; }
catch(e) {
city = '';
}
with(openTab('http://www.nzpost.co.nz/Cultures/en-NZ/OnlineTools/PostCodeFinder/', true)) {
enter("Number",number)
enter("Street Name",street)
enter("Suburb",suburb)
enter("City",city)
click("SubmitAddressSearchImageButton")
}
Graham Chiu
Beta Downloads and Documentation Wiki
Developer Forum