Some of you may know that Skype have an API that you can access via Applescript. To do such tasks as send sms text messages.
You may have found that for some unexplained reason this has stopped working?
I have used a Applescript inside an Automator app to automatically send out sms text messages using skype and run using the Calander.app.
Part of the script
on _skype ( thePhone, the_body , myNotice, myPhone )
tell application “Skype”
set theSMSText to the_body— you message
set TheSMS to ( word 2 of ( send command (“CREATE SMS OUTGOING ” & thePhone & “,” & myPhone) script name “Notifier”) as text)
send command ((“SET SMS ” & TheSMS & ” BODY ” & theSMSText) as string) script name “Notifier”
send command ((“ALTER SMS ” & TheSMS & ” SEND”) as string) script name “Notifier”
A couple of weeks ago all stopped working. The Calendar alert would fire the app would launch and fail. sms not sent. Annoying since I use these alerts to let people know it is their turn to do a task..
What I found was the code above did no longer compile. It would get stuck on the first bit of the sky command “send command”
Scouring the web I could not find what was going on but figured it must be to do with a Skype update I did recently.
Because I realise that the problem may be to do with the update to Skype. I check the current Skype Script Terminology in the Applescript Script Library to see if there had been any changes to the syntax. There where none that I could see.
But the act of opening the Skype Terminology seemed to have re-registered the library with the system. As I found out when the code suddenly started compiling.
Not quite the end of the story
All was working again until today. I knew I had not done any updates to skype so WTF.
It turns out that when I launched Skype it happily told me the Skype team had updated it. Again WTF.
Opening the script library again solved the problem. But this Time I went and found the Auto update check box; That I did not know existed and unchecked it…grrr.
So if you find that your Skype code is broken then this may be why..