Skype and Kontact integration

Ive mentioned previously how to hook twinkle into Kontact. The Linux Skype client is yet to support a decent command line interface or the tel URI but they do support a neat python library called Skype4Py.

Once Skype4Py is installed a quick python script can hook skype into kontact or any other address book that supports script-hooks.

#!/usr/bin/env python
# skype_call.py
import sys
import Skype4Py

number = '+' + sys.argv[1]
skype = Skype4Py.Skype()
skype.Attach()
skype.PlaceCall(number)

Within Kontact go to Settings->Configure Kontact->Contacts->General and configure script-hooks to use the above script.

skype_call.py "%N"

some problems

I just installed Skype4Py, but I'm having some troubles with the skript above. When I start kontact out of the console I get an error message dialing the number : "/bin/sh: /usr/bin/skype_call.py: Permission denied". it seems to be some right problem, but I don't know how to solve it.
for the skript I just copied the above into nano and saved it as skype_call.py, then copied it to /usr/bin - did I maybe miss a step here (never worked with python skripts so far).

appreciate any help,
thanks

solved

ok, one short google solved the problem. forgot the chmod 755 for the script.
works out perfectly, thanks a lot!

daniel

Works perfectly

Thanks! Works perfectly! Only 1 change. skype needs +1 then the number to dialout to regular phone (in US) so I put skype_call.py "1%N"

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
six + = ten
Solve this math question and enter the solution with digits. E.g. for "two plus four = ?" enter "6".