using terms from application "Address Book" on action property return "address" end action property on action title for aPerson with aaddress return "Look Up Personal Phone Number" end action title on should enable action for aPerson with aaddress return true end should enable action on perform action for aPerson with aaddress set cit to city of aaddress set prov to state of aaddress set fn to first name of aPerson set ln to last name of aPerson set AppleScript's text item delimiters to "" tell application "Safari" activate open location ("http://findaperson.canada411.ca/search/Find_Person?firstname=" & fn & "&name=" & ln & "&city_zip=" & cit & "&state_id=" & prov) end tell end perform action end using terms from