SMS through txtdrop

Hello All,
I’m a novice applescripter and have used many of the examples on this site. It’s time to contribute…

I wanted to automate some batch SMS, but it’s against the site’s user agreement. I figured someone could use it for notification purposes… tying it in to a script that runs when you’re away and keeps you informed of its progress.

set npa to "555" --area code
set exchange to "123" --first 3 digits
set phone_number to "4567" --last 4 digits
set email to "you@youraddress.com" --reply address
set message to "your message here" --message <= to 160 characters

--url encode the message
set URLencodedMessage to (do shell script "/usr/bin/python -c 'import sys, urllib; print urllib.quote(sys.argv[1])' " & quoted form of message)

--send SMS through txtdrop.com
do shell script "curl -d \"npa=\"" & npa & "\"&exchange=\"" & exchange & "\"&number=\"" & phone_number & "\"&email=\"" & email & "\"&body=\"" & URLencodedMessage & "\"&submitted=1\" [url=http://www.txtdrop.com/widget_send.php]http://www.txtdrop.com/widget_send.php"[/url]

Andrew