-- Yahoo! maps using terms from application "Address Book" on action property return "address" end action property on action title for p with e if zip of e is missing value or street of e is missing value or city of e is missing value or state of e is missing value then return "Complete address needed" else return "Yahoo! map of" end if end action title on should enable action for p with e if zip of e is missing value or street of e is missing value or city of e is missing value or state of e is missing value then return false else return true end if end should enable action on perform action for p with e set LookupURL to "http://maps.yahoo.com/py/maps.py?addr=" & street of e & "&csz=" & city of e & "+" & state of e & "+" & zip of e tell application "Dock" to open location LookupURL return true end perform action end using terms from