Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A shell script to use Skype for reminder calls UNIX
I've cobbled together a rudimentary shell script (containing an AppleScript call) to have Skype call a specified phone number. I've been using it to schedule wake-up calls and call myself for important reminders during the day.

Since I personally find phone calls to be a more effectively jarring reminder method (more so than other alarms), I've found this script to be useful. I usually schedule it using a unix at command (as described in this hint), but you could cron it, or use some other scheduling technique.

Here's the script:
#!/bin/sh
# Tell Skype to dial a number

if [ -z "$1" ]
  then
  echo "usage: skypecall PHONE_NUMBER"
  exit 65
fi

until [ -z "$1" ]

do
  osascript -l AppleScript -e "tell application "Skype" to get URL "callto://$1""
  shift
done &
sleep 59
killall -m "Skype"
exit 0
I've saved the script as skypecall (and chmod 755'd it). The command line syntax is: skypecall +18005551212 (or whatever number you would use to get Skype to normally work). The sleep 59 line insures that the Skype phone call doesn't stay open indefinitely, burning through your SkypeOut minutes. It forces Skype to quit after 59 seconds. Very ugly, but effective.

Now if I could figure out how to combine this with the command line say command (see this hint), or something like DittyBot, I could probably have my computer call and actually have some substantive message -- rather than just ringing.

[robg adds: I haven't tested this one.]
    •    
  • Currently 3.80 / 5
  You rated: 5 / 5 (5 votes cast)
 
[32,700 views]  

A shell script to use Skype for reminder calls | 10 comments | Create New Account
Click here to return to the 'A shell script to use Skype for reminder calls' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Uh-oh
Authored by: bonkydooky on Nov 08, '05 11:18:48AM

I hope the telemarketers don't find this one!



[ Reply to This | # ]
A shell script to use Skype for reminder calls
Authored by: imacusr on Nov 08, '05 01:03:43PM
I suppose you could turn this into sort of a poor man's Sensaphone with some pre-recorded MP3s?

[ Reply to This | # ]
A shell script to use Skype for reminder calls
Authored by: fr on Nov 08, '05 05:06:17PM

You could probably use "say" together with Audio Hijack Pro to say things through Skype. It lets you redirect sound from one channel to another. Unfortunately, it also costs $32.



[ Reply to This | # ]
A shell script to use Skype for reminder calls
Authored by: mark hunte on Nov 08, '05 05:28:10PM
For those of you who like this but do not know cron ect. copy and save this script using Script Editor (apple script). Open iCal make an new event and set the alarm to 'run script'. navigate to the script you saved and set the time to execute.
tell application "Skype" to get URL "callto://+441234567"
I assume you are always sleeping in the same bed and have the same number, so the number is Hard coded in to the script.

---
mh

[ Reply to This | # ]

A shell script to use Skype for reminder calls
Authored by: Boris Gordon on Nov 09, '05 06:58:43AM
When I use osascript to execute
tell application "Skype" to get URL "callto://+"
it works but when I use the line from the original hint
osascript -l AppleScript -e "tell application "Skype" to get URL "callto://+""
I get the following error :
34:41: syntax error: A ":" can't go after this identifier. (-2740)
Can anyone decipher this ?

[ Reply to This | # ]
A shell script to use Skype for reminder calls
Authored by: mark hunte on Nov 08, '05 05:51:02PM
For those of you who do not want to play with cron. ect. save this applescript (using script editor) as a script
tell application "Skype" to get URL "callto://+442071234567"

delay 29 -- gives about 7 rings, which is just before my answer service kicks in and holds the connection open.
tell application "Skype" to quit
Open iCal, make new event, set an alarm to 'Run Script' . Navigate to the saved file. set the alarm time. and Bobs your milkman's brother.

---
mh

[ Reply to This | # ]

A shell script to use Skype for reminder calls
Authored by: mark hunte on Nov 08, '05 05:54:27PM

??? for the life of me, not sure why both posts got posted.. too much wine I think.
So Sorry for 3 posts that should have only been 1.



---
mh



[ Reply to This | # ]
A shell script to use Skype for reminder calls
Authored by: AmsterQ on Nov 09, '05 09:21:06AM
Can't seems to make it work.

everytime I call the script I get this:

34:41: syntax error: A ":" can't go after this identifier. (-2740)

any idea?

[ Reply to This | # ]
A shell script to use Skype for reminder calls
Authored by: superrcat on Nov 09, '05 08:08:23PM
Change the line in the script from this:
osascript -l AppleScript -e "tell application "Skype" to get URL "callto://$1""
to
osascript -l AppleScript -e "tell application \"Skype\" to get URL \"callto://$1\""


[ Reply to This | # ]
A shell script to use Skype for reminder calls
Authored by: psilo on Sep 10, '07 11:58:12PM

I get
"usage: skypecall PHONE_NUMBER"
when i run the script

any help would be appreciated



[ Reply to This | # ]