
As I was reading the news with Netnewswire today, I thought it'd be
nice to tweet a news item that I wanted to share.
Of course a quick search brought me to a coder named Tinu's excellent
script to do just that.
Unfortunately, I'm a big bit.ly user and his script didn't use bit.ly
as the url shorten service so I modified his script to use bit.ly
authentication and history.
How nice to be able to send twitter messages from netnewswire and then
check on their shortened URLs in my bit.ly dashboard.
Here's the script in case you are a netnewswire who is also a user of
bit.ly as I am. :-)
How do you use it?
+++
--usage enter your bit.ly login and api_key in the second and third
lines of the script
--save to ~/Library/Application Support/NetNewsWire/Scripts
--Now you can access the script from the scripts menu on NetNewsWire.
+++
Hat tip to tinu at http://bit.ly/a4wfBB for giving me the base to build upon.
Curious about netnewswire, an awesome and FREE mac newsreader? Learn
more here:
http://bit.ly/9o0ZbW
Comments 16 Comments
Tinu, if you are using Chrome, try the Shareaholic extension. Great all-in-one extension to share URLs and works with your URL shortener of choice.
insert login and api still work ;)
you can avoid any time to confirm this? http://img215.imageshack.us/img215/3224/screenshot20100424a1623.png
thx
Feel free to have a go at it if you like. It's quite simple.
Cheers
set bitly to "curl --stderr /dev/null \"http://api.bit.ly/v3/shorten?format=txt&longUrl=" & feed_url & "&login=" & login & "&apiKey=" & api_key & "\""
Don't forget to set your bitly login and apiKey at top of the script.
Enjoy!
do shell script "curl --user 'user:pass' --data-binary 'status=Is this true? http://bit.ly/xxxxxE' http://twitter.com/statuses/update.json"
--> "{\"errors\":[{\"code\":53,\"message\":\"Basic authentication is not supported\"}]}"
their authentication protocol so this script would need to be
re-written to use xauth.