Phone Amego can be scripted using the GetURL AppleScript command like this:
tell application "PhoneAmego"
GetURL "tel:401-333-XXXX"
end tell
Phone Amego recognizes and responds to these URLs:
"tel" or "phoneamego" will cause Phone Amego to dial the requested number using the currently selected settings.
"sms" will tell Phone Amego to send an SMS to the requested number, bringing up the "Send SMS with Google Voice" window.
These URLs can also be used from the web. Since there is some risk of a web URL dialing an unknown number that incurs a toll or unexpected result, the "tel" or "phoneamego" URL will normally display an alert confirming the number to be dialed with an option to "Cancel."

You can press "Esc" (Cancel) or "Return" (OK) without leaving the keyboard.
If you are scripting Phone Amego directly, you can avoid this alert by using the "ASGetURL" command in place of "GetURL" above. To avoid this alert, uncheck "Ask Before Dialing from a URL" under the More tab of the Phone Amego window.
Phone Amego includes some basic AppleScripts to pause iTunes playback, set your iChat status, or activiate a screen saver when your phone moves out of range. These scripts are NOT copyrighted so you can use them as building blocks to publish your own. To install these AppleScripts, open the Phone Amego Disk Image (.dmg) file you downloaded and copy the "Phone Amego Scripts" folder to ~/Library/Scripts/ on your hard drive.


The "will_dial (n)" action allows you to intercept outgoing calls just before Phone Amego dials so you can pre-process the phone number if desired. The "Phone Amego will_dial.scpt" provides an example of how to do this.
The "call_from (n)" action allows you to intercept incoming CallerID information just before it is displayed by Phone Amego. The included "Speak CallerID" example announces the callers name. You could also lookup private phone numbers in a company wide database if desired.
The "Bento Search" script intiates a search to bring up the corresponding person record in FileMaker's Bento database. Bento does not provide any AppleScript support, so this script uses System Events to manipulate the user interface. To have Bento dial a phone number, you can add a <tel:number> URL field to each record and click to have Bento open the corresponding URL. I've submitted a feature request to FileMaker to provide better support for opening a specific person record and dialing a phone number directly by having Bento launch a corresponding URL.