Vote
Bury
8
This Geeklet displays a list of your Skype contacts that are currently online. It requires that you save an AppleScript file on your Mac before it will work.

Download this AppleScript and save it in ~/Documents/Scripts. You can save it elsewhere, but you will need to modify the path in the Geeklet script to match it.

Next, download the Geeklet file (linked below) and double-click it to open it up in GeekTool. If you have saved the AppleScript somewhere other than in ~/Documents/Scripts/ you will need to modify the address in the script.

The script fails to run the first time, when Skype asks for permission for AppleScript to access your contact data. Select "Allow this application to use Skype" and click OK. You may need to restart Skype and GeekTool after doing this before the script will run properly.

The script displays the names of your contacts and their "mood messages" if they have any. If you want to disable the mood messages, you can modify the AppleScript. Double-click SkypeOnlineUsers.scpt to open it up in AppleScript Editor. Near the end find the line that says:

set end of onlineusers to aUser & " (" & amoodtext & ")"

change this to

set end of onlineusers to aUser

then save the script.

I originally found this script via this LifeHacker post that links to the original author's blog. Unfortunately that blog no longer exists but you can view an archive of it at the Internet Archive Wayback Machine.

Geeklet file(s) to download

skype1.glet

Either right-click and choose "Save Linked File As..." or hold the Option key and click to download files.
If using Safari, you may have to rename the files without the extra .txt extension that is added.

Comments


Written by shaix
124 days ago
I've had trouble with users not being displayed correctly ("item 6") and users missing completely. I've never written an AppleScript before but replacing:

"get user " & i & " fullname" script name "online users"

with

"get user " & i & " handle" script name "online users"

worked for me. But of course now you only get the handle, not the display name.

If you want to get the online status and e.g. country this works for me:

set status to send command "get user " & i & " onlinestatus" script name "online users"

set status to my tail(status, 4)

set country to send command "get user " & i & " country" script name "online users"

set country to my tail(country, 4)

and modify if-else statements to:

if status is ("" & country is "") then

set end of onlineusers to aUser

end if

if country is ("" & status is not "") then

set end of onlineusers to aUser & " (" & status & ")"

end if

if country is not ("" & status is not "") then

set end of onlineusers to aUser & " (" & status & ") " & country

end if



Written by notlob42
86 days ago
so theres an error on this site, it wont post the code I'm trying to show, I apologize for the double post.



Written by notlob42
86 days ago
and heres the double post I cant delete, maybe that should be a new site feature? basically I think one of my friends mood messages broke the script and I need to work around this because I am not removing this person from my friends. email me if you think you can help, I'll explain fully; pythonfan042@gmail.com



Log in to comment or register here.