property googleMaps : "http://maps.google.com/maps?q=" using terms from application "Address Book" on action property return "address" end action property on action title for p with v return "Google Map Of (Firefox)" end action title on should enable action for p with v return true end should enable action on perform action for p with v set params to "" if street of v is not missing value then set params to params & street of v & " " if city of v is not missing value then set params to params & city of v & " " if state of v is not missing value then set params to params & state of v & " " if zip of v is not missing value then set params to params & zip of v & " " try tell application "Firefox" OpenURL googleMaps & params activate end tell on error display dialog "You must have Firefox installed to use this plug-in." end try end perform action end using terms from