Skip to content

Instantly share code, notes, and snippets.

@firesteps
Created February 10, 2011 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save firesteps/820778 to your computer and use it in GitHub Desktop.
Save firesteps/820778 to your computer and use it in GitHub Desktop.
add item "copy to clipboard" to context menu of phone number in Address Book.app
-- file "AddressBookPluginCopyMobilePhone.scpt" must be placed in ~/Library/Address Book Plug-Ins/
--add item "copy to clipboard" to context menu of phone number in Address Book.app
using terms from application "Address Book"
on action property
return "phone"
end action property
on action title for aPerson with phoneNumber
return ("Copy to clipboard")
end action title
on should enable action for aPerson with screenName
return true
end should enable action
on perform action for aPerson with phoneNumber
set the clipboard to (value of phoneNumber as string)
end perform action
end using terms from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment