Bonjour,
On avait fait un petit script y'a deux ans pour le click2dial depuis le Carnet d'Adresse sous Mac OS.
Ça marche plutôt bien. La seule chose peut-être gênante est que ça ouvre systématiquement une page Safari.
De mémoire, on avait aussi trouvé des soft open-source qui le faisait avec de la notification d'appel entrant. Mais ça ne nous intéressait pas, donc on n'a pas creusé.
Pour info, si ça t'intéresse, le code pour le click2call :
Code:
using terms from application "Address Book"
on action property
return "phone"
end action property
on action title for p with e
return "Appeler"
end action title
on should enable action for p with e
if value of e is missing value then
return false
else
return true
end if
end should enable action
on perform action for p with e
set telephone to the value of e
set dialUrl to "http://monURL.php?num=" & telephone
tell application "Safari"
set browser to make new document
tell browser
set URL to dialUrl
end tell
end tell
return true
end perform action
end using terms from