Sure. The script is pretty simple. I found a couple of others, but none of them worked to actually dial. By Trial and Error I came up with this:
- Code: Select all
property DialPlan : "#1"
property DialAccount : "Vonage"
using terms from application "Address Book"
on should enable action for p with e
return true
end should enable action
on action property
return "phone"
end action property
on action title for p with e
set StrToDial to value of e as string
return ("eyeBeam: Dial " & StrToDial & " with " & DialAccount)
end action title
on perform action for p with e
set NumToDial to value of e
with timeout of 30 seconds
tell application "eyeBeam"
activate
return «event Xtendial» (DialPlan & NumToDial)
end tell
end timeout
end perform action
end using terms from
Put that in ~/Library/Address Book Plug-Ins/.
With the first 2 lines, I can create a script for each of the VOIP accounts
I have, and get a new menu item for each phone number when I right
click in Address Book. Prepending the Dial Plan Prefix to the number to
dial, tells eyeBeam to use that VOIP account.
Simple.
Carpe Telefono