- Python pizza status
- Why Gen Y Is Going to Change the Web
- Understanding how you process information to help you get organized, part 2
- OLPC Will Ship With Windows XP
- How to Be On Time Every Time
- Poor Children Of The World No Longer Will Have To Struggle With Linux
- HubSpot Gets $12 Million To Drive Traffic to Your Site
- Google kills Anonymous AdSense account
- Epic Fail....
- Lifehack Digest for May 14
- Debian/Ubuntu users: update your SSL keys and certs
- Information Overload
- Scattered Clouds
- Cleaning Your Display and Keyboard
- Knievel Fail
- New Google Service Turns Web Pages into Networking Sites
- Ice Cream Fail
- Strange Fail
- Obedience Fail
- Scary Clown
Skype and Kontact integration
Submitted by rene on Tue, 04/22/2008 - 21:40.
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