Created
February 10, 2011 16:06
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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